fake test repo

This commit is contained in:
Yisroel Baum 2026-02-19 21:00:02 +02:00
parent 29f93e6b0d
commit 467e5288d7
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View 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,
);
}
}