php cs fixer
This commit is contained in:
parent
26abaeb739
commit
189493b045
17 changed files with 44 additions and 43 deletions
|
|
@ -23,10 +23,10 @@ class BulkCreateNodesControllerTest extends TestCase
|
|||
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->textRepo = new FakeTextRepository;
|
||||
$this->textRepo = new FakeTextRepository();
|
||||
$text = $this->textRepo->create(new CreateTextDto(name: 'test text'));
|
||||
|
||||
$this->nodeRepo = new FakeNodeRepository;
|
||||
$this->nodeRepo = new FakeNodeRepository();
|
||||
$this->nodeRepo->create(new CreateNodeDto(
|
||||
text: $text,
|
||||
title: 'Root Node',
|
||||
|
|
@ -44,8 +44,8 @@ class BulkCreateNodesControllerTest extends TestCase
|
|||
|
||||
private function makeRequest(array $data): ServerRequestInterface
|
||||
{
|
||||
$body = (new StreamFactory())->createStream(json_encode($data));
|
||||
return (new ServerRequestFactory())
|
||||
$body = new StreamFactory()->createStream(json_encode($data));
|
||||
return new ServerRequestFactory()
|
||||
->createServerRequest('POST', 'http://localhost/api/nodes/bulk')
|
||||
->withHeader('Content-Type', 'application/json')
|
||||
->withBody($body);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue