@@ -222,11 +222,11 @@ public function testInvalidPermissions(): void
222222
223223 // Only contains a single ':'
224224 $ this ->assertFalse ($ object ->isValid (['user1234 ' ]));
225- $ this ->assertEquals ('Permission "user1234" is not allowed. Must be one of: create, read, update, delete, write . ' , $ object ->getDescription ());
225+ $ this ->assertEquals ('Permission "user1234" is not allowed. Must be one of: create, read, update, delete. ' , $ object ->getDescription ());
226226 $ this ->assertFalse ($ object ->isValid (['user::1234 ' ]));
227- $ this ->assertEquals ('Permission "user::1234" is not allowed. Must be one of: create, read, update, delete, write . ' , $ object ->getDescription ());
227+ $ this ->assertEquals ('Permission "user::1234" is not allowed. Must be one of: create, read, update, delete. ' , $ object ->getDescription ());
228228 $ this ->assertFalse ($ object ->isValid (['user:123:4 ' ]));
229- $ this ->assertEquals ('Permission "user:123:4" is not allowed. Must be one of: create, read, update, delete, write . ' , $ object ->getDescription ());
229+ $ this ->assertEquals ('Permission "user:123:4" is not allowed. Must be one of: create, read, update, delete. ' , $ object ->getDescription ());
230230
231231 // Split role into format {$type}:{$value}
232232 // Permission must have value
@@ -331,11 +331,10 @@ public function testDuplicateMethods(): void
331331 ]);
332332 $ this ->assertTrue ($ validator ->isValid ($ document ->getPermissions ()));
333333 $ permissions = $ document ->getPermissions ();
334- $ this ->assertEquals (5 , count ($ permissions ));
334+ $ this ->assertEquals (4 , count ($ permissions ));
335335 $ this ->assertEquals ([
336336 'read("any") ' ,
337337 'read("user: ' . $ user . '") ' ,
338- 'write("user: ' . $ user . '") ' ,
339338 'update("user: ' . $ user . '") ' ,
340339 'delete("user: ' . $ user . '") ' ,
341340 ], $ permissions );
0 commit comments