Mark Scherer 10 年之前
父节点
当前提交
483cf1692e
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      Test/Case/Controller/Component/Auth/TinyAuthorizeTest.php

+ 5 - 2
Test/Case/Controller/Component/Auth/TinyAuthorizeTest.php

@@ -189,9 +189,12 @@ INI;
 		$res = $object->authorize($user, $this->request);
 		$this->assertTrue($res);
 
-		// verbose role defition using the new 2.x contain param for Auth
+		// verbose role definition using the new 2.x contain param for Auth
 		$user = [
-			'Role' => [['id' => 1, 'RoleUser' => []], ['id' => 3, 'RoleUser' => []]],
+			'Role' => [
+				['id' => 1, 'RoleUser' => []],
+				['id' => 3, 'RoleUser' => []]
+			],
 		];
 		$res = $object->authorize($user, $this->request);
 		$this->assertTrue($res);