diff --git a/tests/Fakes/FakeTextRepository.php b/tests/Fakes/FakeTextRepository.php index 86d3076..388e01c 100644 --- a/tests/Fakes/FakeTextRepository.php +++ b/tests/Fakes/FakeTextRepository.php @@ -47,4 +47,20 @@ class FakeTextRepository implements TextRepository { return count($this->existingTexts); } + + /** + * @return Text[] + */ + public function getAll(): array + { + return array_map( + function (Text $text) { + return new Text( + id: $text->getId(), + name: $text->getName(), + ); + }, + $this->existingTexts + ); + } }