aboutsummaryrefslogtreecommitdiff
path: root/engine/tests/api
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-08 15:43:39 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-08 15:43:39 +0000
commit2f94af7b91fefe6c0df381464bc0311b04bac582 (patch)
treed11343f97841676e50915376bee51c9319f7776a /engine/tests/api
parent364a5e7b7f1b448bc70ce6266a5e01eefcd75291 (diff)
downloadelgg-2f94af7b91fefe6c0df381464bc0311b04bac582.tar.gz
elgg-2f94af7b91fefe6c0df381464bc0311b04bac582.tar.bz2
Fixes #1496: delete_access_collection() invalidates the access collection cache before attempting to delete. Removed a misplaced unset() in a unit test that was causing test objects not to be properly deleted.
git-svn-id: http://code.elgg.org/elgg/trunk@3922 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/tests/api')
-rw-r--r--engine/tests/api/entity_getter_functions.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/engine/tests/api/entity_getter_functions.php b/engine/tests/api/entity_getter_functions.php
index 579b3cea0..d09f1066d 100644
--- a/engine/tests/api/entity_getter_functions.php
+++ b/engine/tests/api/entity_getter_functions.php
@@ -25,19 +25,14 @@ class ElggCoreEntityGetterFunctionsTest extends ElggCoreUnitTest {
'object' => array(),
'user' => array(),
'group' => array(),
- //'site' => array()
+ //'site' => array()
);
// sites are a bit wonky. Don't use them just now.
$this->types = array('object', 'user', 'group');
// create some fun objects to play with.
- // one with no subtype
-// $e = new ElggObject();
-// $e->subtype = $subtype;
-// $e->save();
-
- // and 5 with random subtypes
+ // 5 with random subtypes
for ($i=0; $i<5; $i++) {
$subtype = "test_object_subtype_" . rand();
$e = new ElggObject();
@@ -74,10 +69,8 @@ class ElggCoreEntityGetterFunctionsTest extends ElggCoreUnitTest {
*/
public function tearDown() {
//$this->swallowErrors();
-
foreach ($this->entities as $e) {
$e->delete();
- unset($this->entities);
}
}