1 update.test UpdateDependencyOrderingTestCase::testUpdateOrderingSingleModule()

Test that updates within a single module run in the correct order.

File

core/modules/simpletest/tests/update.test, line 20
Tests for the update system.

Class

UpdateDependencyOrderingTestCase
Tests for the update dependency ordering system.

Code

function testUpdateOrderingSingleModule() {
  $starting_updates = array(
    'update_test_1' => 1000,
  );
  $expected_updates = array(
    'update_test_1_update_1000',
    'update_test_1_update_1001',
    'update_test_1_update_1002',
  );
  $actual_updates = array_keys(update_resolve_dependencies($starting_updates));
  $this->assertEqual($expected_updates, $actual_updates, 'Updates within a single module run in the correct order.');
}