From 73ade7f971aa600ce556d2feacdb761136d02529 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Fri, 24 Apr 2026 13:19:51 +0300 Subject: [PATCH] update tests for user password hash --- tests/Unit/Plan/UseCases/CreatePlanTest.php | 1 + tests/Unit/User/FakeUserRepositoryTest.php | 2 ++ tests/e2e/Controllers/PlanControllerTest.php | 1 + 3 files changed, 4 insertions(+) diff --git a/tests/Unit/Plan/UseCases/CreatePlanTest.php b/tests/Unit/Plan/UseCases/CreatePlanTest.php index 667e72c..f64c0be 100644 --- a/tests/Unit/Plan/UseCases/CreatePlanTest.php +++ b/tests/Unit/Plan/UseCases/CreatePlanTest.php @@ -39,6 +39,7 @@ class CreatePlanTest extends TestCase $this->scheduledNodeRepo = new FakeScheduledNodeRepository(); $this->userRepo->create(new CreateUserDto( email: new EmailAddress('test@test.com'), + passwordHash: '', )); $this->createScheduledNode = new CreateScheduledNode( scheduledNodeRepo: $this->scheduledNodeRepo, diff --git a/tests/Unit/User/FakeUserRepositoryTest.php b/tests/Unit/User/FakeUserRepositoryTest.php index 20d8b73..6d583a5 100644 --- a/tests/Unit/User/FakeUserRepositoryTest.php +++ b/tests/Unit/User/FakeUserRepositoryTest.php @@ -15,6 +15,7 @@ class FakeUserRepositoryTest extends TestCase $userRepo = new FakeUserRepository(); $userRepo->create(new CreateUserDto( email: new EmailAddress('test@test.com'), + passwordHash: '', )); $user = $userRepo->findByEmail(new EmailAddress('test@test.com')); @@ -39,6 +40,7 @@ class FakeUserRepositoryTest extends TestCase $userRepo = new FakeUserRepository(); $created = $userRepo->create(new CreateUserDto( email: new EmailAddress('test@test.com'), + passwordHash: '', )); $fetched = $userRepo->findByEmail( diff --git a/tests/e2e/Controllers/PlanControllerTest.php b/tests/e2e/Controllers/PlanControllerTest.php index ee51012..a14fd7d 100644 --- a/tests/e2e/Controllers/PlanControllerTest.php +++ b/tests/e2e/Controllers/PlanControllerTest.php @@ -40,6 +40,7 @@ class PlanControllerTest extends TestCase $this->userRepo->create(new CreateUserDto( email: new EmailAddress('test@test.com'), + passwordHash: '', )); $text = $this->textRepo->create(new CreateTextDto('testname')); $this->nodeRepo->create(new CreateNodeDto(