php cs fixer

This commit is contained in:
Yisroel Baum 2026-04-19 23:07:48 +03:00
parent 26abaeb739
commit 189493b045
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
17 changed files with 44 additions and 43 deletions

View file

@ -19,7 +19,7 @@ class TextControllerTest extends TestCase
public function setUp(): void
{
$this->textRepo = new FakeTextRepository;
$this->textRepo = new FakeTextRepository();
$this->textRepo->create(new CreateTextDto(
name: 'test text',
));
@ -56,7 +56,7 @@ class TextControllerTest extends TestCase
[
'id' => 1,
'name' => 'test text 2',
]
],
]),
$response->getBody()
);
@ -64,7 +64,7 @@ class TextControllerTest extends TestCase
public function test_create_text(): void
{
$request = (new ServerRequestFactory())
$request = new ServerRequestFactory()
->createServerRequest('POST', 'http://localhost/texts')
->withParsedBody(['name' => 'my new text']);
@ -73,7 +73,7 @@ class TextControllerTest extends TestCase
new Response(),
new CreateText(
$this->textRepo,
new FakeNodeRepository,
new FakeNodeRepository(),
),
);
$this->assertEquals(