summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/database_test.test
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-26 04:46:38 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-26 04:46:38 +0000
commitc1ce884e4bb1b7cdc7b6ca26a2ad3e8366b6d167 (patch)
tree2669ca2ef63e9bd1ac5994188e11e7a5b499c776 /modules/simpletest/tests/database_test.test
parent7536a354141c48c19109e511acf628c799e168b5 (diff)
downloadbrdo-c1ce884e4bb1b7cdc7b6ca26a2ad3e8366b6d167.tar.gz
brdo-c1ce884e4bb1b7cdc7b6ca26a2ad3e8366b6d167.tar.bz2
#612392 by chx and Crell: Allow lowercase comparison operators in DBTNG.
Diffstat (limited to 'modules/simpletest/tests/database_test.test')
-rw-r--r--modules/simpletest/tests/database_test.test4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/simpletest/tests/database_test.test b/modules/simpletest/tests/database_test.test
index 87e6881a5..8970224c4 100644
--- a/modules/simpletest/tests/database_test.test
+++ b/modules/simpletest/tests/database_test.test
@@ -790,9 +790,11 @@ class DatabaseUpdateComplexTestCase extends DatabaseTestCase {
* Test WHERE NOT IN clauses.
*/
function testNotInConditionUpdate() {
+ // The o is lowercase in the 'NoT IN' operator, to make sure the operators
+ // work in mixed case.
$num_updated = db_update('test')
->fields(array('job' => 'Musician'))
- ->condition('name', array('John', 'Paul', 'George'), 'NOT IN')
+ ->condition('name', array('John', 'Paul', 'George'), 'NoT IN')
->execute();
$this->assertIdentical($num_updated, 1, t('Updated 1 record.'));