Fix tests for acl type

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2017-12-05 11:46:48 +01:00
committed by Julius Härtl
parent 367873beaa
commit 137f429cfa
2 changed files with 10 additions and 10 deletions

View File

@@ -66,10 +66,10 @@ class UnknownUserTest extends \Test\TestCase {
$this->getBoard(1,'Test', 'admin'),
];
$acl = [
$this->getAcl('user', 'existing', 1),
$this->getAcl('user', 'not existing', 1),
$this->getAcl('group', 'existing', 1),
$this->getAcl('group', 'not existing', 1),
$this->getAcl(Acl::PERMISSION_TYPE_USER, 'existing', 1),
$this->getAcl(Acl::PERMISSION_TYPE_USER, 'not existing', 1),
$this->getAcl(Acl::PERMISSION_TYPE_GROUP, 'existing', 1),
$this->getAcl(Acl::PERMISSION_TYPE_GROUP, 'not existing', 1),
];
$this->aclMapper->expects($this->at(0))
->method('findAll')
@@ -109,7 +109,7 @@ class UnknownUserTest extends \Test\TestCase {
/** @return Acl */
public function getAcl($type='user', $participant='admin', $boardId=123) {
public function getAcl($type=Acl::PERMISSION_TYPE_USER, $participant='admin', $boardId=123) {
$acl = new Acl();
$acl->setParticipant($participant);
$acl->setType($type);