summaryrefslogtreecommitdiff
path: root/tests/units/Helper/UserHelperTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-31 17:46:19 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-31 17:46:19 -0500
commitfc21d3873e3ac63222ad4065a593c715bef4c251 (patch)
treeb1795031eda0774aeb1af9fb20606fe38611e0eb /tests/units/Helper/UserHelperTest.php
parent1500ff92b2dc3d3932c8e06755bec23f9017e8a4 (diff)
When creating a new project, have the possibility to select another project to duplicate
Diffstat (limited to 'tests/units/Helper/UserHelperTest.php')
-rw-r--r--tests/units/Helper/UserHelperTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/units/Helper/UserHelperTest.php b/tests/units/Helper/UserHelperTest.php
index 67ccee73..f1099faa 100644
--- a/tests/units/Helper/UserHelperTest.php
+++ b/tests/units/Helper/UserHelperTest.php
@@ -36,8 +36,8 @@ class UserHelperTest extends Base
);
$this->assertTrue($helper->hasAccess('user', 'create'));
- $this->assertTrue($helper->hasAccess('project', 'create'));
- $this->assertTrue($helper->hasAccess('project', 'createPrivate'));
+ $this->assertTrue($helper->hasAccess('ProjectCreation', 'create'));
+ $this->assertTrue($helper->hasAccess('ProjectCreation', 'createPrivate'));
}
public function testHasAccessForManagers()
@@ -50,8 +50,8 @@ class UserHelperTest extends Base
);
$this->assertFalse($helper->hasAccess('user', 'create'));
- $this->assertTrue($helper->hasAccess('project', 'create'));
- $this->assertTrue($helper->hasAccess('project', 'createPrivate'));
+ $this->assertTrue($helper->hasAccess('ProjectCreation', 'create'));
+ $this->assertTrue($helper->hasAccess('ProjectCreation', 'createPrivate'));
}
public function testHasAccessForUsers()
@@ -64,8 +64,8 @@ class UserHelperTest extends Base
);
$this->assertFalse($helper->hasAccess('user', 'create'));
- $this->assertFalse($helper->hasAccess('project', 'create'));
- $this->assertTrue($helper->hasAccess('project', 'createPrivate'));
+ $this->assertFalse($helper->hasAccess('ProjectCreation', 'create'));
+ $this->assertTrue($helper->hasAccess('ProjectCreation', 'createPrivate'));
}
public function testHasProjectAccessForAdmins()