summaryrefslogtreecommitdiff
path: root/tests/units/Model/ProjectPermissionModelTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-10-27 16:16:11 -0700
committerFrederic Guillot <fred@kanboard.net>2017-10-27 16:16:11 -0700
commitcc6618901bc927558dc159ac0dbec1159231c5f1 (patch)
treef1c14931ab88c0056e538e6d62cd1fa667d94a0d /tests/units/Model/ProjectPermissionModelTest.php
parent0b9c3b0a5b61a61faf9061e040e072e4b198f6d2 (diff)
Remove feature "Allow everybody to access to this project"
Diffstat (limited to 'tests/units/Model/ProjectPermissionModelTest.php')
-rw-r--r--tests/units/Model/ProjectPermissionModelTest.php12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/units/Model/ProjectPermissionModelTest.php b/tests/units/Model/ProjectPermissionModelTest.php
index 7f604374..4b5a7476 100644
--- a/tests/units/Model/ProjectPermissionModelTest.php
+++ b/tests/units/Model/ProjectPermissionModelTest.php
@@ -120,18 +120,6 @@ class ProjectPermissionModelTest extends Base
$this->assertEquals('Project 3', $users[0]['project_name']);
}
- public function testEverybodyAllowed()
- {
- $projectModel = new ProjectModel($this->container);
- $projectPermission = new ProjectPermissionModel($this->container);
-
- $this->assertEquals(1, $projectModel->create(array('name' => 'Project 1')));
- $this->assertEquals(2, $projectModel->create(array('name' => 'Project 2', 'is_everybody_allowed' => 1)));
-
- $this->assertFalse($projectPermission->isEverybodyAllowed(1));
- $this->assertTrue($projectPermission->isEverybodyAllowed(2));
- }
-
public function testIsUserAllowed()
{
$userModel = new UserModel($this->container);