diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-04-20 02:23:17 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-04-20 02:23:17 +0000 |
commit | d30a41e79147b29c22027e64fdf53e34d24bafe0 (patch) | |
tree | 67097bfe860bb00973225cb4213e19e6fcc9dc92 /modules/simpletest/tests/database_test.test | |
parent | 3b4e3d0334f36d76329d40ae5f8795287ec6a85e (diff) | |
download | brdo-d30a41e79147b29c22027e64fdf53e34d24bafe0.tar.gz brdo-d30a41e79147b29c22027e64fdf53e34d24bafe0.tar.bz2 |
Roll-back of #333054; needs more discussion.
Diffstat (limited to 'modules/simpletest/tests/database_test.test')
-rw-r--r-- | modules/simpletest/tests/database_test.test | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/modules/simpletest/tests/database_test.test b/modules/simpletest/tests/database_test.test index b0b299215..a59e321aa 100644 --- a/modules/simpletest/tests/database_test.test +++ b/modules/simpletest/tests/database_test.test @@ -1995,34 +1995,6 @@ class DatabaseRegressionTestCase extends DatabaseTestCase { $this->assertTrue(db_table_exists('node'), t('Returns true for existent table.')); $this->assertFalse(db_table_exists('nosuchtable'), t('Returns false for nonexistent table.')); } - - /** - * Test that string comparison is case-sensitive. - */ - function testCaseSensitiviteCompare() { - $num_matches = db_query("SELECT COUNT(*) FROM {test} WHERE name = :name", array(':name' => 'George'))->fetchField(); - $this->assertEqual($num_matches, 1, t('Correct number of records found with proper case.')); - $num_matches = db_query("SELECT COUNT(*) FROM {test} WHERE name = :name", array(':name' => 'GEORGE'))->fetchField(); - $this->assertEqual($num_matches, 0, t('Correct number of records found with wrong case.')); - - $num_matches = db_query("SELECT COUNT(*) FROM {test} WHERE name LIKE :name", array(':name' => 'Geo%'))->fetchField(); - $this->assertEqual($num_matches, 1, t('Correct number of records found with proper case.')); - $num_matches = db_query("SELECT COUNT(*) FROM {test} WHERE name LIKE :name", array(':name' => 'GEO%'))->fetchField(); - $this->assertEqual($num_matches, 0, t('Correct number of records found with wrong case.')); - - $num_matches = db_select('test') - ->condition('name', 'Geo%', 'LIKE') - ->countQuery() - ->execute() - ->fetchField(); - $this->assertEqual($num_matches, 1, t('Correct number of records found with proper case.')); - $num_matches = db_select('test') - ->condition('name', 'GEO%', 'LIKE') - ->countQuery() - ->execute() - ->fetchField(); - $this->assertEqual($num_matches, 0, t('Correct number of records found with wrong case.')); - } } /** |