From f4315766fe31d57cd3a709d666d363bcf933febe Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 22 Oct 2008 04:01:03 +0000 Subject: #316868 by Crell: Make addField() alias to the field name, rather than the table and field name when there are no conflicts. --- modules/simpletest/tests/database_test.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/simpletest/tests/database_test.test b/modules/simpletest/tests/database_test.test index 7efb88256..adc94a39e 100644 --- a/modules/simpletest/tests/database_test.test +++ b/modules/simpletest/tests/database_test.test @@ -1014,7 +1014,7 @@ class DatabaseSelectTestCase extends DatabaseTestCase { $result = $query->execute(); // Check that the aliases are being created the way we want. - $this->assertEqual($name_field, 'test_name', t('Name field alias is correct.')); + $this->assertEqual($name_field, 'name', t('Name field alias is correct.')); $this->assertEqual($age_field, 'age', t('Age field alias is correct.')); // Ensure that we got the right record. @@ -1034,7 +1034,7 @@ class DatabaseSelectTestCase extends DatabaseTestCase { $result = $query->execute(); // Check that the aliases are being created the way we want. - $this->assertEqual($name_field, 'test_name', t('Name field alias is correct.')); + $this->assertEqual($name_field, 'name', t('Name field alias is correct.')); $this->assertEqual($age_field, 'double_age', t('Age field alias is correct.')); // Ensure that we got the right record. -- cgit v1.2.3