Skip to content

Commit

Permalink
fixedttests
Browse files Browse the repository at this point in the history
  • Loading branch information
bladeroot committed Feb 9, 2017
1 parent 535d5aa commit c937899
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/unit/CheckAccessTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function testClient()
$this->assertFalse($this->auth->checkAccess('role:client', 'manage'));
$this->assertFalse($this->auth->checkAccess('role:client', 'domain.freeze'));
$this->assertFalse($this->auth->checkAccess('role:client', 'domain.unfreeze'));
$this->assertFalse($this->auth->checkAccess('role:client', 'domain.force-push'));
$this->assertFalse($this->auth->checkAccess('role:client', 'admin'));
$this->assertFalse($this->auth->checkAccess('role:client', 'resell'));
$this->assertFalse($this->auth->checkAccess('role:client', 'own'));
Expand All @@ -51,6 +52,7 @@ public function testSupport()
$this->assertFalse($this->auth->checkAccess('role:support', 'manage'));
$this->assertFalse($this->auth->checkAccess('role:support', 'domain.freeze'));
$this->assertFalse($this->auth->checkAccess('role:support', 'domain.unfreeze'));
$this->assertFalse($this->auth->checkAccess('role:support', 'domain.force-push'));
$this->assertFalse($this->auth->checkAccess('role:support', 'admin'));
$this->assertFalse($this->auth->checkAccess('role:support', 'resell'));
$this->assertFalse($this->auth->checkAccess('role:support', 'own'));
Expand Down Expand Up @@ -78,6 +80,7 @@ public function testManager()
$this->assertFalse($this->auth->checkAccess('role:manager', 'own'));
$this->assertFalse($this->auth->checkAccess('role:manager', 'domain.freeze'));
$this->assertFalse($this->auth->checkAccess('role:manager', 'domain.unfreeze'));
$this->assertFalse($this->auth->checkAccess('role:manager', 'domain.force-push'));
$this->assertFalse($this->auth->checkAccess('role:manager', 'bill.create'));
$this->assertFalse($this->auth->checkAccess('role:manager', 'bill.update'));
$this->assertFalse($this->auth->checkAccess('role:manager', 'bill.delete'));
Expand Down Expand Up @@ -107,6 +110,7 @@ public function testMighty()
$this->assertTrue ($this->auth->checkAccess('user:mighty', 'contact.force-verify'));
$this->assertTrue ($this->auth->checkAccess('user:mighty', 'mailing.prepare'));
$this->assertTrue ($this->auth->checkAccess('user:mighty', 'mailing.send'));
$this->assertTrue ($this->auth->checkAccess('user:mighty', 'domain.force-push'));

$this->assertFalse($this->auth->checkAccess('user:mighty', 'deposit'));
$this->assertFalse($this->auth->checkAccess('user:mighty', 'restore-password'));
Expand All @@ -115,7 +119,5 @@ public function testMighty()
$this->assertFalse($this->auth->checkAccess('user:mighty', 'bill.update'));
$this->assertFalse($this->auth->checkAccess('user:mighty', 'bill.delete'));
$this->assertFalse($this->auth->checkAccess('user:mighty', 'domain.unfreeze'));
$this->assertFalse($this->auth->checkAccess('user:mighty', 'domain.force-push'));

}
}

0 comments on commit c937899

Please sign in to comment.