style
This commit is contained in:
parent
e04931ac08
commit
669bcf8d5e
2 changed files with 9 additions and 8 deletions
|
|
@ -26,10 +26,10 @@ $container = new Container([
|
||||||
NodeRepository::class => DI\autowire(JsonNodeRepository::class),
|
NodeRepository::class => DI\autowire(JsonNodeRepository::class),
|
||||||
PlanRepository::class => DI\autowire(JsonPlanRepository::class),
|
PlanRepository::class => DI\autowire(JsonPlanRepository::class),
|
||||||
UserRepository::class => DI\autowire(JsonUserRepository::class),
|
UserRepository::class => DI\autowire(JsonUserRepository::class),
|
||||||
ScheduledNodeRepository::class =>
|
ScheduledNodeRepository::class
|
||||||
DI\autowire(JsonScheduledNodeRepository::class),
|
=> DI\autowire(JsonScheduledNodeRepository::class),
|
||||||
SessionRepository::class =>
|
SessionRepository::class
|
||||||
DI\autowire(JsonSessionRepository::class),
|
=> DI\autowire(JsonSessionRepository::class),
|
||||||
TokenGenerator::class => DI\autowire(RandomTokenGenerator::class),
|
TokenGenerator::class => DI\autowire(RandomTokenGenerator::class),
|
||||||
Clock::class => DI\autowire(SystemClock::class),
|
Clock::class => DI\autowire(SystemClock::class),
|
||||||
PasswordHasher::class => DI\autowire(BcryptPasswordHasher::class),
|
PasswordHasher::class => DI\autowire(BcryptPasswordHasher::class),
|
||||||
|
|
|
||||||
|
|
@ -29,9 +29,9 @@ class GetTodaysScheduleTest extends TestCase
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
$this->userRepo = new FakeUserRepository;
|
$this->userRepo = new FakeUserRepository();
|
||||||
$this->scheduledNodeRepo = new FakeScheduledNodeRepository;
|
$this->scheduledNodeRepo = new FakeScheduledNodeRepository();
|
||||||
$this->planRepo = new FakePlanRepository;
|
$this->planRepo = new FakePlanRepository();
|
||||||
$user = $this->userRepo->create(new CreateUserDto(
|
$user = $this->userRepo->create(new CreateUserDto(
|
||||||
email: new EmailAddress('email@email.com'),
|
email: new EmailAddress('email@email.com'),
|
||||||
passwordHash: 'hash',
|
passwordHash: 'hash',
|
||||||
|
|
@ -100,7 +100,8 @@ class GetTodaysScheduleTest extends TestCase
|
||||||
text: new Text(id: 0, name: 'test text'),
|
text: new Text(id: 0, name: 'test text'),
|
||||||
parentNode: null,
|
parentNode: null,
|
||||||
),
|
),
|
||||||
));
|
)
|
||||||
|
);
|
||||||
$node->setCompleted(true);
|
$node->setCompleted(true);
|
||||||
$this->scheduledNodeRepo->update($node);
|
$this->scheduledNodeRepo->update($node);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue