summaryrefslogtreecommitdiff
path: root/modules/simpletest
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-09-01 01:35:19 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-09-01 01:35:19 +0000
commitdc3e02fbfdc6c477e74e7b62b74df46fad3853e8 (patch)
treec74117876d40404ca799df6cca51d65ad4ffce8e /modules/simpletest
parenta405b10d681584039d8a9ca8a8ec8f23c6037118 (diff)
downloadbrdo-dc3e02fbfdc6c477e74e7b62b74df46fad3853e8.tar.gz
brdo-dc3e02fbfdc6c477e74e7b62b74df46fad3853e8.tar.bz2
#890994 by Berdir, Crell, Josh Waihi: Fixed Entity query tests fail on PostgreSQL.
Diffstat (limited to 'modules/simpletest')
-rw-r--r--modules/simpletest/tests/entity_query.test12
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/simpletest/tests/entity_query.test b/modules/simpletest/tests/entity_query.test
index 0b3db8b59..e120c53b2 100644
--- a/modules/simpletest/tests/entity_query.test
+++ b/modules/simpletest/tests/entity_query.test
@@ -501,16 +501,20 @@ class EntityFieldQueryTestCase extends DrupalWebTestCase {
$query = new EntityFieldQuery();
$query
->entityCondition('entity_type', 'test_entity_bundle_key')
- ->propertyCondition('ftid', 1, 'CONTAINS');
+ ->propertyCondition('fttype', 'und', 'CONTAINS');
$this->assertEntityFieldQuery($query, array(
array('test_entity_bundle_key', 1),
+ array('test_entity_bundle_key', 2),
+ array('test_entity_bundle_key', 3),
+ array('test_entity_bundle_key', 4),
+ array('test_entity_bundle_key', 5),
+ array('test_entity_bundle_key', 6),
), t('Test the "contains" operation on a property.'));
$query = new EntityFieldQuery();
- $query->fieldCondition($this->fields[0], 'value', 3, 'CONTAINS');
+ $query->fieldCondition($this->fields[1], 'shape', 'uar', 'CONTAINS');
$this->assertEntityFieldQuery($query, array(
- array('test_entity_bundle_key', 3),
- array('test_entity', 3),
+ array('test_entity_bundle', 5),
), t('Test the "contains" operation on a field.'));
$query = new EntityFieldQuery();