From a08c9696694cee8a41effd7cb6527f9d1e9ca5e0 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 28 Mar 2010 11:45:11 +0000 Subject: - Patch #728338 by sun, Crell: standardize on 'field' in function names. 'It has to get worse before it can get better.' --- modules/simpletest/tests/database_test.test | 8 ++++---- modules/simpletest/tests/schema.test | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/simpletest/tests') 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']))); } } -- cgit v1.2.3