summaryrefslogtreecommitdiff
path: root/tests/Unit/Controllers/Stub
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-11-14 02:17:27 +0100
committermsquare <msquare@notrademark.de>2018-12-02 12:53:31 +0100
commitc9d7e88cc70b6ad124c28be479a6e64c4b174ea6 (patch)
treeee4a37c27b05c1ef4ccc6a01cc088b510f5084ef /tests/Unit/Controllers/Stub
parent55beca95cd8d6ecfe610daea304c8374a10485af (diff)
Implemented controller permissions
Diffstat (limited to 'tests/Unit/Controllers/Stub')
-rw-r--r--tests/Unit/Controllers/Stub/ControllerImplementation.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/Unit/Controllers/Stub/ControllerImplementation.php b/tests/Unit/Controllers/Stub/ControllerImplementation.php
new file mode 100644
index 00000000..01d9f250
--- /dev/null
+++ b/tests/Unit/Controllers/Stub/ControllerImplementation.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace Engelsystem\Test\Unit\Controllers\Stub;
+
+use Engelsystem\Controllers\BaseController;
+
+class ControllerImplementation extends BaseController
+{
+ /** @var array */
+ protected $permissions = [
+ 'foo',
+ 'lorem' => [
+ 'ipsum',
+ 'dolor',
+ ],
+ ];
+
+ /**
+ * @param array $permissions
+ */
+ public function setPermissions(array $permissions)
+ {
+ $this->permissions = $permissions;
+ }
+}