File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -231,11 +231,31 @@ public function testSetPermissionLevel() {
231
231
/**
232
232
* Tests AclManager::roleExists()
233
233
*/
234
- public function testRoleExist (){
234
+ public function testRoleExist () {
235
235
$ this ->aclManager ->start ();
236
236
$ this ->assertFalse ($ this ->aclManager ->roleExists ('@Zorro ' ));
237
237
$ this ->aclManager ->addRole ('@Zorro ' );
238
238
$ this ->assertTrue ($ this ->aclManager ->roleExists ('@Zorro ' ));
239
239
}
240
+
241
+ /**
242
+ * Tests AclManager::resourceExists()
243
+ */
244
+ public function testResourceExist () {
245
+ $ this ->aclManager ->start ();
246
+ $ this ->assertFalse ($ this ->aclManager ->resourceExists ('Truc.* ' ));
247
+ $ this ->aclManager ->addResource ('Truc.* ' );
248
+ $ this ->assertTrue ($ this ->aclManager ->roleExists ('Truc.* ' ));
249
+ }
250
+
251
+ /**
252
+ * Tests AclManager::permissionExists()
253
+ */
254
+ public function testPermissionExist () {
255
+ $ this ->aclManager ->start ();
256
+ $ this ->assertFalse ($ this ->aclManager ->permissionExists ('BLUR ' ));
257
+ $ this ->aclManager ->addPermission ('BLUR ' );
258
+ $ this ->assertTrue ($ this ->aclManager ->permissionExists ('BLUR ' ));
259
+ }
240
260
}
241
261
You can’t perform that action at this time.
0 commit comments