| 7 update.test | UpdateDependencyMissingTestCase::testMissingUpdate() |
| 8 update.test | UpdateDependencyMissingTestCase::testMissingUpdate() |
File
- modules/
simpletest/ tests/ update.test, line 77 - Tests for the update system.
Code
function testMissingUpdate() {
$starting_updates = array(
'update_test_2' => 7000,
);
$update_graph = update_resolve_dependencies($starting_updates);
$this->assertTrue($update_graph['update_test_2_update_7000']['allowed'], t("The module's first update function is allowed to run, since it does not have any missing dependencies."));
$this->assertFalse($update_graph['update_test_2_update_7001']['allowed'], t("The module's second update function is not allowed to run, since it has a direct dependency on a missing update."));
$this->assertFalse($update_graph['update_test_2_update_7002']['allowed'], t("The module's third update function is not allowed to run, since it has an indirect dependency on a missing update."));
}
Login or register to post comments