diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-20 12:52:48 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-20 12:52:48 +0200 |
commit | 00cdc609d113fedf977da1d55136dc4d699fb308 (patch) | |
tree | 3e54049861fb2698cd4501bae829c62093d4c982 /tests/units/TaskTest.php | |
parent | 5f96af82f26967f4614b89322a82a59cb48bd2a3 (diff) |
Extract project permissions to a separate class
Diffstat (limited to 'tests/units/TaskTest.php')
-rw-r--r-- | tests/units/TaskTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/units/TaskTest.php b/tests/units/TaskTest.php index b5ba6c18..dee3accd 100644 --- a/tests/units/TaskTest.php +++ b/tests/units/TaskTest.php @@ -4,6 +4,7 @@ require_once __DIR__.'/Base.php'; use Model\Task; use Model\Project; +use Model\ProjectPermission; use Model\Category; use Model\User; @@ -536,6 +537,7 @@ class TaskTest extends Base { $t = new Task($this->registry); $p = new Project($this->registry); + $pp = new ProjectPermission($this->registry); $user = new User($this->registry); // We create a regular user @@ -566,7 +568,7 @@ class TaskTest extends Base $this->assertEquals('test', $task['title']); // We allow only one user on the second project - $this->assertTrue($p->allowUser(2, 2)); + $this->assertTrue($pp->allowUser(2, 2)); // The owner should be reseted $task = $t->getById(2); |