Skip to content

Commit

Permalink
Simplify recreation of storages (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
arogachev authored Jan 24, 2024
1 parent a20147a commit 28b610d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions tests/Common/AssignmentsStorageTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,6 @@ protected function createAssignmentsStorage(): AssignmentsStorageInterface

protected function getAssignmentsStorageForModificationAssertions(): AssignmentsStorageInterface
{
return static::$reCreateAssignmentsStorageAfterModifications
? $this->createAssignmentsStorage()
: $this->getAssignmentsStorage();
return $this->getAssignmentsStorage();
}
}
4 changes: 1 addition & 3 deletions tests/Common/ItemsStorageTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

trait ItemsStorageTestTrait
{
protected static bool $reCreateItemsStorageAfterModifications = false;

private int $initialRolesCount = 0;
private int $initialPermissionsCount = 0;
private int $initialBothRolesChildrenCount = 0;
Expand Down Expand Up @@ -582,7 +580,7 @@ protected function createItemsStorage(): ItemsStorageInterface

protected function getItemsStorageForModificationAssertions(): ItemsStorageInterface
{
return static::$reCreateItemsStorageAfterModifications ? $this->createItemsStorage() : $this->getItemsStorage();
return $this->getItemsStorage();
}

protected function getFixtures(): array
Expand Down

0 comments on commit 28b610d

Please sign in to comment.