summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/module.test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/simpletest/tests/module.test')
-rw-r--r--modules/simpletest/tests/module.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/simpletest/tests/module.test b/modules/simpletest/tests/module.test
index fa241b8df..87f1a1544 100644
--- a/modules/simpletest/tests/module.test
+++ b/modules/simpletest/tests/module.test
@@ -37,7 +37,11 @@ class ModuleUnitTest extends DrupalWebTestCase {
$this->assertModuleList($base_module_list, t('After adding a module'));
// Try to mess with the module weights.
- db_query("UPDATE {system} SET weight = 20 WHERE name = 'path' AND type = 'module'");
+ db_update('system')
+ ->fields(array('weight' => 20))
+ ->condition('name', 'path')
+ ->condition('type', 'module')
+ ->execute();
// Reset the module list.
module_list(TRUE);
// Move path at the end of the array.