fake node repo

This commit is contained in:
Yisroel Baum 2026-02-19 21:25:55 +02:00
parent 3d0d07385c
commit c8f5f1343e
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -0,0 +1,17 @@
<?php
namespace Tests\Fakes;
use App\Node\CreateNodeDto;
use App\Node\Node;
use App\Node\NodeRepository;
class FakeNodeRepository implements NodeRepository
{
public function create(CreateNodeDto $dto): Node
{
return new Node(
title: $dto->title,
);
}
}