diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-06-26 02:16:23 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-06-26 02:16:23 +0000 |
commit | a7bbd6d13eb0c88976a1f75e63f9c9813e2828b7 (patch) | |
tree | d4a80e76ae2de0cd3e1968beb7db8b5eedadd467 /modules/simpletest | |
parent | f0a49e662de237c4096d6384a07e3ccc2b43999c (diff) | |
download | brdo-a7bbd6d13eb0c88976a1f75e63f9c9813e2828b7.tar.gz brdo-a7bbd6d13eb0c88976a1f75e63f9c9813e2828b7.tar.bz2 |
- Patch #808534 by dhthwy, Damien Tournoud, chx: file_get_file_references() is completely broken.
Diffstat (limited to 'modules/simpletest')
-rw-r--r-- | modules/simpletest/tests/entity_query.test | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/simpletest/tests/entity_query.test b/modules/simpletest/tests/entity_query.test index 359e6fb93..0b3db8b59 100644 --- a/modules/simpletest/tests/entity_query.test +++ b/modules/simpletest/tests/entity_query.test @@ -248,6 +248,23 @@ class EntityFieldQueryTestCase extends DrupalWebTestCase { array('test_entity', 101), ), t('Test revision age.')); + // Test that fields attached to the non-revision supporting entity + // 'test_entity_bundle_key' are reachable in FIELD_LOAD_REVISION. + $query = new EntityFieldQuery(); + $query + ->fieldCondition($this->fields[0], 'value', 100, '<') + ->age(FIELD_LOAD_REVISION); + $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', 1), + array('test_entity', 2), + array('test_entity', 3), + array('test_entity', 4), + ), t('Test that fields are reachable from FIELD_LOAD_REVISION even for non-revision entities.')); + // Test entity sort by entity_id. $query = new EntityFieldQuery(); $query |