From 9e12767c75191b440086a6a54f1d470a1b550332 Mon Sep 17 00:00:00 2001 From: webchick Date: Fri, 16 Dec 2011 06:42:49 -0600 Subject: Revert "Issue #813540 by jbrown, chx: Fixed Comparisons involving NULL must never return true." This reverts commit 06f31080c7281c8227d2556cd0807744e91c9fb5. --- modules/simpletest/tests/database_test.test | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (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 91a51f361..87d386aa7 100644 --- a/modules/simpletest/tests/database_test.test +++ b/modules/simpletest/tests/database_test.test @@ -1453,24 +1453,10 @@ class DatabaseSelectTestCase extends DatabaseTestCase { $this->assertEqual($record->job, 'Singer', t('Job field has the correct value.')); } - /** - * Test that a comparison with NULL is always FALSE. - */ - function testNullCondition() { - $this->ensureSampleDataNull(); - - $names = db_select('test_null', 'tn') - ->fields('tn', array('name')) - ->condition('age', NULL) - ->execute()->fetchCol(); - - $this->assertEqual(count($names), 0, t('No records found when comparing to NULL.')); - } - /** * Test that we can find a record with a NULL value. */ - function testIsNullCondition() { + function testNullCondition() { $this->ensureSampleDataNull(); $names = db_select('test_null', 'tn') @@ -1485,7 +1471,7 @@ class DatabaseSelectTestCase extends DatabaseTestCase { /** * Test that we can find a record without a NULL value. */ - function testIsNotNullCondition() { + function testNotNullCondition() { $this->ensureSampleDataNull(); $names = db_select('test_null', 'tn') -- cgit v1.2.3