[TASK] Add ResourceStorage getEvaluatePermissions()
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Unit / Resource / ResourceStorageTest.php
index 26a50ea..c0ba9ae 100644 (file)
@@ -356,6 +356,24 @@ class ResourceStorageTest extends \TYPO3\CMS\Core\Tests\Unit\Resource\BaseTestCa
                $this->assertFalse($this->fixture->checkUserActionPermission('write', 'folder'));
        }
 
+       /**
+        * @test
+        */
+       public function getEvaluatePermissionsWhenSetFalse() {
+               $this->prepareFixture(array());
+               $this->fixture->setEvaluatePermissions(FALSE);
+               $this->assertFalse($this->fixture->getEvaluatePermissions());
+       }
+
+       /**
+        * @test
+        */
+       public function getEvaluatePermissionsWhenSetTrue() {
+               $this->prepareFixture(array());
+               $this->fixture->setEvaluatePermissions(TRUE);
+               $this->assertTrue($this->fixture->getEvaluatePermissions());
+       }
+
        /**
         * @test
         * @group integration