Skip to content

Commit

Permalink
Separate chain calls (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
sankaest committed May 31, 2022
1 parent 8e6f461 commit 2228d37
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/ManagerTest.php
Expand Up @@ -676,7 +676,9 @@ public function testUpdateRoleNameAndRule(): void
{
$manager = $this->createManager();

$role = $this->itemsStorage->getRole('reader')->withName('new reader');
$role = $this->itemsStorage
->getRole('reader')
->withName('new reader');

$returnedManager = $manager->updateRole('reader', $role);

Expand Down Expand Up @@ -746,7 +748,8 @@ public function testUpdatePermission(): void
{
$manager = $this->createManager();

$permission = $this->itemsStorage->getPermission('updatePost')
$permission = $this->itemsStorage
->getPermission('updatePost')
->withName('newUpdatePost')
->withCreatedAt(1642026149)
->withUpdatedAt(1642026150);
Expand All @@ -767,7 +770,8 @@ public function testUpdateDirectPermission1(): void
{
$manager = $this->createManager();

$permission = $this->itemsStorage->getPermission('deletePost')
$permission = $this->itemsStorage
->getPermission('deletePost')
->withName('newDeletePost')
->withCreatedAt(1642026149)
->withUpdatedAt(1642026150);
Expand Down

0 comments on commit 2228d37

Please sign in to comment.