This commit is contained in:
Yisroel Baum 2026-05-01 09:56:14 +03:00
parent e04931ac08
commit 669bcf8d5e
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
2 changed files with 9 additions and 8 deletions

View file

@ -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),

View file

@ -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);