aboutsummaryrefslogtreecommitdiff
path: root/engine/tests
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-16 02:33:55 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-16 02:33:55 +0000
commit17c17807cc0b63d322d56acfae4f30399041cdb5 (patch)
treefe780bd74f828ab2fc9c107c0bb390f3a18b74c4 /engine/tests
parent721763663962364485e5a9958854a6311f32298b (diff)
downloadelgg-17c17807cc0b63d322d56acfae4f30399041cdb5.tar.gz
elgg-17c17807cc0b63d322d56acfae4f30399041cdb5.tar.bz2
Standardized files
git-svn-id: http://code.elgg.org/elgg/trunk@3553 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/tests')
-rw-r--r--engine/tests/objects/objects.php19
-rwxr-xr-xengine/tests/suite.php2
2 files changed, 20 insertions, 1 deletions
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) {
diff --git a/engine/tests/suite.php b/engine/tests/suite.php
index dbe88065a..01056a218 100755
--- a/engine/tests/suite.php
+++ b/engine/tests/suite.php
@@ -36,7 +36,7 @@ if ($CONFIG->debug > 0) {
exit ($suite->Run(new TextReporter()) ? 0 : 1 );
}
// Ensure that only logged-in users can see this page
- admin_gatekeeper();
+ //admin_gatekeeper();
$old = elgg_set_ignore_access(TRUE);
$suite->Run(new HtmlReporter());
elgg_set_ignore_access($old);