fake test repo
This commit is contained in:
parent
29f93e6b0d
commit
467e5288d7
1 changed files with 17 additions and 0 deletions
17
tests/Fakes/FakeTextRepository.php
Normal file
17
tests/Fakes/FakeTextRepository.php
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Tests\Fakes;
|
||||||
|
|
||||||
|
use App\Text\CreateTextDto;
|
||||||
|
use App\Text\Text;
|
||||||
|
use App\Text\TextRepository;
|
||||||
|
|
||||||
|
class FakeTextRepository implements TextRepository
|
||||||
|
{
|
||||||
|
public function create(CreateTextDto $dto): Text
|
||||||
|
{
|
||||||
|
return new Text(
|
||||||
|
name: $dto->name,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue