diff --git a/core/modules/simpletest/lib/Drupal/simpletest/Tests/DrupalUnitTestBaseTest.php b/core/modules/simpletest/lib/Drupal/simpletest/Tests/DrupalUnitTestBaseTest.php index ff8f72e..6001c4f 100644 --- a/core/modules/simpletest/lib/Drupal/simpletest/Tests/DrupalUnitTestBaseTest.php +++ b/core/modules/simpletest/lib/Drupal/simpletest/Tests/DrupalUnitTestBaseTest.php @@ -34,13 +34,16 @@ public static function getInfo() { */ function testSetUp() { $module = 'entity_test'; + $table = 'entity_test'; + // Verify that specified $modules have been loaded. $this->assertTrue(function_exists('entity_test_permission'), "$module.module was loaded."); // Verify that there is a fixed module list. $this->assertIdentical(module_list(), array($module => $module)); $this->assertIdentical(module_implements('permission'), array($module)); + // Verify that no modules have been installed. - $this->assertFalse(db_table_exists($module), "'$module' database table not found."); + $this->assertFalse(db_table_exists($table), "'$table' database table not found."); } /** @@ -59,7 +62,7 @@ function testEnableModulesLoad() { // Enable the module. $this->enableModules(array($module), FALSE); - // Verify that the module does not exist yet. + // Verify that the module exists. $this->assertTrue(module_exists($module), "$module module found."); $list = module_list(); $this->assertTrue(in_array($module, $list), "$module module in module_list() found.");