diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2011-09-28 22:05:31 -0700 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2011-09-28 22:05:31 -0700 |
commit | 90f5e694f6e7005f35297f9493f5caeedcf25a8c (patch) | |
tree | 26d960c24368e3cf212be08eaa2f27f843025872 /engine/tests | |
parent | 700ae307bd2bc698f60ffd02afcc87aaff9f74e5 (diff) | |
download | elgg-90f5e694f6e7005f35297f9493f5caeedcf25a8c.tar.gz elgg-90f5e694f6e7005f35297f9493f5caeedcf25a8c.tar.bz2 |
Fixes #3713. elgg_get_entities() and friends return false if passed invalid options.
Diffstat (limited to 'engine/tests')
-rw-r--r-- | engine/tests/api/entity_getter_functions.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engine/tests/api/entity_getter_functions.php b/engine/tests/api/entity_getter_functions.php index aef7a991e..59b48999c 100644 --- a/engine/tests/api/entity_getter_functions.php +++ b/engine/tests/api/entity_getter_functions.php @@ -2789,4 +2789,13 @@ class ElggCoreEntityGetterFunctionsTest extends ElggCoreUnitTest { $this->assertEqual($a_e_map[$a->id], $a->owner_guid); } } + + public function testElggGetEntitiesBadWheres() { + $options = array( + 'container_guid' => 'abc' + ); + + $entities = elgg_get_entities($options); + $this->assertFalse($entities); + } } |