function UpdateScriptFunctionalTest::testNoPendingUpdates

Tests that there are no pending updates for the first test method.

File

modules/system/system.test, line 2528

Class

UpdateScriptFunctionalTest
Tests for the update system functionality.

Code

function testNoPendingUpdates() {
    // Ensure that for the first test method in a class, there are no pending
    // updates. This tests a drupal_get_schema_versions() bug that previously
    // led to the wrong schema version being recorded for the initial install
    // of a child site during automated testing.
    $this->drupalLogin($this->update_user);
    $this->drupalGet($this->update_url, array(
        'external' => TRUE,
    ));
    $this->drupalPost(NULL, array(), t('Continue'));
    $this->assertText(t('No pending updates.'), 'End of update process was reached.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.