1 system.test UpdateScriptFunctionalTest::testNoPendingUpdates()

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


core/modules/system/tests/system.test, line 2138
Tests for system.module.


Tests for the update system functionality.


function testNoPendingUpdates() {
  // Ensure that for the first test method in a class, there are no pending
  // updates. This tests a backdrop_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->backdropGet($this->update_url, array('external' => TRUE));
  $this->backdropPost(NULL, array(), t('Continue'));
  $this->assertText(t('No pending updates.'), 'End of update process was reached.');