summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-28 11:45:11 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-28 11:45:11 +0000
commita08c9696694cee8a41effd7cb6527f9d1e9ca5e0 (patch)
tree890d8ac23afb9c5d25c42c2ac18a1feffad8a388 /modules/simpletest/tests
parent00ecc0a208cf498c7e5e2e734364f62509f1be6e (diff)
downloadbrdo-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/tests')
-rw-r--r--modules/simpletest/tests/database_test.test8
-rw-r--r--modules/simpletest/tests/schema.test2
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'])));
}
}