From efa22581033e09613513b9ba5aee32429ef79fa9 Mon Sep 17 00:00:00 2001 From: saeid Date: Sun, 23 Oct 2016 23:48:19 +0330 Subject: [PATCH] chnage id to string in test --- tests/TestCase/Auth/TinyAuthorizeTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestCase/Auth/TinyAuthorizeTest.php b/tests/TestCase/Auth/TinyAuthorizeTest.php index c7940aa4..4bd60c6d 100644 --- a/tests/TestCase/Auth/TinyAuthorizeTest.php +++ b/tests/TestCase/Auth/TinyAuthorizeTest.php @@ -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); @@ -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,