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),
|
||||
PlanRepository::class => DI\autowire(JsonPlanRepository::class),
|
||||
UserRepository::class => DI\autowire(JsonUserRepository::class),
|
||||
ScheduledNodeRepository::class =>
|
||||
DI\autowire(JsonScheduledNodeRepository::class),
|
||||
SessionRepository::class =>
|
||||
DI\autowire(JsonSessionRepository::class),
|
||||
ScheduledNodeRepository::class
|
||||
=> DI\autowire(JsonScheduledNodeRepository::class),
|
||||
SessionRepository::class
|
||||
=> DI\autowire(JsonSessionRepository::class),
|
||||
TokenGenerator::class => DI\autowire(RandomTokenGenerator::class),
|
||||
Clock::class => DI\autowire(SystemClock::class),
|
||||
PasswordHasher::class => DI\autowire(BcryptPasswordHasher::class),
|
||||
|
|
|
|||
|
|
@ -29,9 +29,9 @@ class GetTodaysScheduleTest extends TestCase
|
|||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->userRepo = new FakeUserRepository;
|
||||
$this->scheduledNodeRepo = new FakeScheduledNodeRepository;
|
||||
$this->planRepo = new FakePlanRepository;
|
||||
$this->userRepo = new FakeUserRepository();
|
||||
$this->scheduledNodeRepo = new FakeScheduledNodeRepository();
|
||||
$this->planRepo = new FakePlanRepository();
|
||||
$user = $this->userRepo->create(new CreateUserDto(
|
||||
email: new EmailAddress('email@email.com'),
|
||||
passwordHash: 'hash',
|
||||
|
|
@ -100,7 +100,8 @@ class GetTodaysScheduleTest extends TestCase
|
|||
text: new Text(id: 0, name: 'test text'),
|
||||
parentNode: null,
|
||||
),
|
||||
));
|
||||
)
|
||||
);
|
||||
$node->setCompleted(true);
|
||||
$this->scheduledNodeRepo->update($node);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue