From c1ce884e4bb1b7cdc7b6ca26a2ad3e8366b6d167 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 26 Oct 2009 04:46:38 +0000 Subject: #612392 by chx and Crell: Allow lowercase comparison operators in DBTNG. --- modules/simpletest/tests/database_test.test | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/simpletest/tests/database_test.test') 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.')); -- cgit v1.2.3