From 17c17807cc0b63d322d56acfae4f30399041cdb5 Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 16 Oct 2009 02:33:55 +0000 Subject: Standardized files git-svn-id: http://code.elgg.org/elgg/trunk@3553 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/tests/objects/objects.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'engine/tests/objects/objects.php') diff --git a/engine/tests/objects/objects.php b/engine/tests/objects/objects.php index 632ff4c38..d30e4fae4 100644 --- a/engine/tests/objects/objects.php +++ b/engine/tests/objects/objects.php @@ -163,6 +163,25 @@ class ElggCoreObjectTest extends ElggCoreUnitTest { $this->assertIdentical($exportables, $this->entity->getExportableValues()); } + + public function xtestElggObjectAccessOverrides() { + // set entity to private access with no owner. + $entity = $this->entity; + $entity->access_id = ACCESS_PRIVATE; + $entity->owner_guid = 0; + $this->assertTrue($entity->save()); + $guid = $entity->getGUID(); + + var_dump($guid); + // try to grab entity + $entity = false; + $entity = get_entity($guid); + var_dump($entity); + $this->assertFalse($entity); + + $old = elgg_set_ignore_access(true); + } + protected function get_object_row($guid) { -- cgit v1.2.3