From 6d677c4319c4ca1a5b500db7af5e0452166d8ed0 Mon Sep 17 00:00:00 2001 From: Adam Vessey Date: Wed, 19 Jun 2013 09:11:54 -0300 Subject: [PATCH] Get rid of implicit denial tests. Variable no longer exists, so these are no longer useful. --- tests/hooked_access.test | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/tests/hooked_access.test b/tests/hooked_access.test index 90a893c7..0039460e 100644 --- a/tests/hooked_access.test +++ b/tests/hooked_access.test @@ -133,41 +133,6 @@ class IslandoraHookedAccessTestCase extends IslandoraWebTestCase { $this->assertTrue(islandora_datastream_access($this->op, $this->object['asdf'], $user), 'Allow datastream access.'); } - /** - * Deny an operation which was not explicitly allowed on an object. - */ - public function testDenyObjectImplicit() { - $user = $this->drupalCreateUser(array($this->other_op)); - - // This variable forces either a TRUE or FALSE from Islandora's - // implementation of hook_islandora_object_access(). - variable_set('islandora_strict_user_access_enforcement', FALSE); - $_SESSION['islandora_hooked_access_test'] = array( - $this->other_op, - $this->object, - $user, - ); - $this->assertFalse(islandora_object_access($this->op, $this->object, $user), 'Implied denial of object access.'); - } - - /** - * Deny an operation which was not explicitly allowed on a datastream. - */ - public function testDenyDatastreamImplicit() { - $user = $this->drupalCreateUser(array($this->other_op)); - - // This variable forces either a TRUE or FALSE from Islandora's - // implementation of hook_islandora_object_access(). - variable_set('islandora_strict_user_access_enforcement', FALSE); - - $_SESSION['islandora_hooked_access_test'] = array( - $this->other_op, - $this->object['asdf'], - $user, - ); - $this->assertFalse(islandora_datastream_access($this->op, $this->object['asdf'], $user), 'Implied denial of datastream access.'); - } - /** * Deny an operation which was not explicitly allowed on an object. */