php cs fixer
This commit is contained in:
parent
26abaeb739
commit
189493b045
17 changed files with 44 additions and 43 deletions
|
|
@ -21,10 +21,10 @@ class BulkCreateNodesTest extends TestCase
|
|||
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->textRepo = new FakeTextRepository;
|
||||
$this->textRepo = new FakeTextRepository();
|
||||
$this->textRepo->create(new CreateTextDto(name: 'text'));
|
||||
|
||||
$this->nodeRepo = new FakeNodeRepository;
|
||||
$this->nodeRepo = new FakeNodeRepository();
|
||||
$text = $this->textRepo->find(0);
|
||||
$this->parentNode = $this->nodeRepo->create(new CreateNodeDto(
|
||||
text: $text,
|
||||
|
|
|
|||
|
|
@ -21,11 +21,11 @@ class CreateNodeTest extends TestCase
|
|||
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->textRepo = new FakeTextRepository;
|
||||
$this->textRepo = new FakeTextRepository();
|
||||
$this->textRepo->create(new CreateTextDto(
|
||||
name: 'text'
|
||||
));
|
||||
$this->nodeRepo = new FakeNodeRepository;
|
||||
$this->nodeRepo = new FakeNodeRepository();
|
||||
$this->useCase = new CreateNode(
|
||||
nodeRepo: $this->nodeRepo,
|
||||
textRepo: $this->textRepo,
|
||||
|
|
|
|||
|
|
@ -30,11 +30,11 @@ class CreatePlanTest extends TestCase
|
|||
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->planRepo = new FakePlanRepository;
|
||||
$this->userRepo = new FakeUserRepository;
|
||||
$this->textRepo = new FakeTextRepository;
|
||||
$this->nodeRepo = new FakeNodeRepository;
|
||||
$this->scheduledNodeRepo = new FakeScheduledNodeRepository;
|
||||
$this->planRepo = new FakePlanRepository();
|
||||
$this->userRepo = new FakeUserRepository();
|
||||
$this->textRepo = new FakeTextRepository();
|
||||
$this->nodeRepo = new FakeNodeRepository();
|
||||
$this->scheduledNodeRepo = new FakeScheduledNodeRepository();
|
||||
$this->userRepo->create(new CreateUserDto(
|
||||
email: new EmailAddress('test@test.com'),
|
||||
));
|
||||
|
|
@ -121,7 +121,8 @@ class CreatePlanTest extends TestCase
|
|||
textId: 0,
|
||||
));
|
||||
$this->assertEquals(
|
||||
1, $this->scheduledNodeRepo->getNumberOfTimesCreateCalled()
|
||||
1,
|
||||
$this->scheduledNodeRepo->getNumberOfTimesCreateCalled()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ class CreateScheduledNodeTest extends TestCase
|
|||
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->scheduledNodeRepo = new FakeScheduledNodeRepository;
|
||||
$this->planRepo = new FakePlanRepository;
|
||||
$this->scheduledNodeRepo = new FakeScheduledNodeRepository();
|
||||
$this->planRepo = new FakePlanRepository();
|
||||
$this->planRepo->create(new CreatePlanDto(
|
||||
name: 'testplan',
|
||||
user: new User(0, new EmailAddress('test@test.com')),
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ class CreateTextTest extends TestCase
|
|||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->textRepo = new FakeTextRepository;
|
||||
$this->nodeRepo = new FakeNodeRepository;
|
||||
$this->textRepo = new FakeTextRepository();
|
||||
$this->nodeRepo = new FakeNodeRepository();
|
||||
$this->useCase = new CreateText(
|
||||
$this->textRepo,
|
||||
$this->nodeRepo,
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ class CreateUserTest extends TestCase
|
|||
{
|
||||
public function test_create_user(): void
|
||||
{
|
||||
$userRepo = new FakeUserRepository;
|
||||
$userRepo = new FakeUserRepository();
|
||||
$useCase = new CreateUser($userRepo);
|
||||
$useCase->execute(new CreateUserRequest(
|
||||
email: 'test@test.com',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue