Skip to content

Commit

Permalink
Merge pull request #45 from saeideng/tests
Browse files Browse the repository at this point in the history
change id to string in a test
  • Loading branch information
dereuromark authored Oct 23, 2016
2 parents 5969b56 + efa2258 commit c58472e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/TestCase/Auth/TinyAuthorizeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@ public function testSuperAdmin() {
$res = $object->authorize($user, $this->request);
$this->assertTrue($res);

$user = ['id' => 101, 'role_id' => 1, 'group' => 2, 'authors'];
$user = ['id' => 101, 'role_id' => 1, 'group' => 'authors'];
$res = $object->authorize($user, $this->request);
$this->assertFalse($res);

Expand Down Expand Up @@ -1472,6 +1472,7 @@ public function testSuperAdmin() {
$user = ['id' => 2, 'group_id' => 102];
$res = $object->authorize($user, $this->request);
$this->assertFalse($res);

//single role and use superAdminColumn (string)
$object = new TestTinyAuthorize($this->collection, [
'multiRole' => true,
Expand Down

0 comments on commit c58472e

Please sign in to comment.