php cs fixer
This commit is contained in:
parent
26abaeb739
commit
189493b045
17 changed files with 44 additions and 43 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue