diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-03-28 11:45:11 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-03-28 11:45:11 +0000 |
commit | a08c9696694cee8a41effd7cb6527f9d1e9ca5e0 (patch) | |
tree | 890d8ac23afb9c5d25c42c2ac18a1feffad8a388 /modules/simpletest | |
parent | 00ecc0a208cf498c7e5e2e734364f62509f1be6e (diff) | |
download | brdo-a08c9696694cee8a41effd7cb6527f9d1e9ca5e0.tar.gz brdo-a08c9696694cee8a41effd7cb6527f9d1e9ca5e0.tar.bz2 |
- Patch #728338 by sun, Crell: standardize on 'field' in function names. 'It has to get worse before it can get better.'
Diffstat (limited to 'modules/simpletest')
-rw-r--r-- | modules/simpletest/tests/database_test.test | 8 | ||||
-rw-r--r-- | modules/simpletest/tests/schema.test | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/modules/simpletest/tests/database_test.test b/modules/simpletest/tests/database_test.test index d8b9d87d9..95ebc1ca5 100644 --- a/modules/simpletest/tests/database_test.test +++ b/modules/simpletest/tests/database_test.test @@ -2434,11 +2434,11 @@ class DatabaseRegressionTestCase extends DatabaseTestCase { } /** - * Test the db_column_exists() function. + * Test the db_field_exists() function. */ - function testDBColumnExists() { - $this->assertIdentical(TRUE, db_column_exists('node', 'nid'), t('Returns true for existent column.')); - $this->assertIdentical(FALSE, db_column_exists('node', 'nosuchcolumn'), t('Returns false for nonexistent column.')); + function testDBFieldExists() { + $this->assertIdentical(TRUE, db_field_exists('node', 'nid'), t('Returns true for existent column.')); + $this->assertIdentical(FALSE, db_field_exists('node', 'nosuchcolumn'), t('Returns false for nonexistent column.')); } /** diff --git a/modules/simpletest/tests/schema.test b/modules/simpletest/tests/schema.test index 0ddead4dc..53e8ea723 100644 --- a/modules/simpletest/tests/schema.test +++ b/modules/simpletest/tests/schema.test @@ -170,7 +170,7 @@ class SchemaTestCase extends DrupalWebTestCase { // Finally, check each column and try to insert invalid values into them. foreach($table_spec['fields'] as $column_name => $column_spec) { - $this->assertTrue(db_column_exists($table_name, $column_name), t('Unsigned @type column was created.', array('@type' => $column_spec['type']))); + $this->assertTrue(db_field_exists($table_name, $column_name), t('Unsigned @type column was created.', array('@type' => $column_spec['type']))); $this->assertFalse($this->tryUnsignedInsert($table_name, $column_name), t('Unsigned @type column rejected a negative value.', array('@type' => $column_spec['type']))); } } |