f95adddaaf
fix code style in test files
2026-04-26 10:45:57 +03:00
13da7c311a
return utc from clock
2026-04-26 10:32:08 +03:00
2fe41a5fe7
no need to test concrete implementations
2026-04-26 10:23:57 +03:00
a65c9259fa
dont cast email to string, use new value method
2026-04-26 10:19:38 +03:00
bb6bd7cbb3
use FakePasswordHasher in tests to eliminate bcrypt cost
...
Add a trivial prefix-based PasswordHasher fake and inject it into the
three test files that exercise CreateUser or AuthenticateUser. Drops
the full phpunit suite from ~7.4s to ~30ms (about 224x) without
losing coverage: the round-trip through hash/verify still validates
that CreateUser stores something other than the plaintext and that
AuthenticateUser only succeeds on a matching hash.
CreateUserTest is also refactored to use a setUp method, matching
the pattern already used in AuthenticateUserTest and AuthControllerTest.
2026-04-26 09:06:26 +03:00
05374991c5
update plan controller tests for auth
2026-04-24 13:31:44 +03:00
edfe7259a3
test auth controller
2026-04-24 13:27:49 +03:00
40649ded8e
test admin middleware
2026-04-24 13:26:20 +03:00
cd2168c822
test auth middleware
2026-04-24 13:25:17 +03:00
2a281386a5
test create session
2026-04-24 13:24:01 +03:00
78ffb77f9f
add fake clock
2026-04-24 13:23:46 +03:00
057df09dda
add fake token generator
2026-04-24 13:23:23 +03:00
619ebd3907
add fake session repository
2026-04-24 13:22:06 +03:00
c2ade8a601
test fake session repository
2026-04-24 13:21:51 +03:00
fd5278b3fe
test authenticate user
2026-04-24 13:20:45 +03:00
73ade7f971
update tests for user password hash
2026-04-24 13:19:51 +03:00
a52bb18b13
store password hash in fake user repo
2026-04-24 13:19:00 +03:00
38cfd34645
test create user requires password
2026-04-24 13:18:00 +03:00
30b8cc2c74
test create user rejects duplicate email
2026-04-24 13:16:57 +03:00
64edec5141
implement find by email in fake user repo
2026-04-24 13:16:29 +03:00
b2fc6a7ded
test fake user repo find by email
2026-04-24 13:16:02 +03:00
dcb4df043e
store is admin in fake user repo
2026-04-24 13:15:12 +03:00
160181888d
test user has is admin flag
2026-04-24 13:14:20 +03:00
9d831915de
test create plan schedules nodes
2026-04-24 11:02:55 +03:00
0ff5043ba5
test create plan persists plan
2026-04-24 11:02:38 +03:00
165f08f04d
test create plan 404 when text not found
2026-04-24 11:02:20 +03:00
2238202384
test create plan 404 when user not found
2026-04-24 11:02:00 +03:00
68554cb362
test create plan 400 when date end before start
2026-04-24 11:01:47 +03:00
2a76f69553
test create plan 400 when date end missing
2026-04-24 11:01:34 +03:00
21bed284e9
test create plan 400 when date start missing
2026-04-24 11:01:21 +03:00
0b4f7c61ef
test create plan 400 when name missing
2026-04-24 11:01:06 +03:00
088fa5b533
test create plan 400 when text id missing
2026-04-24 11:00:53 +03:00
ecb43fda2d
test create plan 400 when user id missing
2026-04-24 11:00:37 +03:00
ef71708abe
test create plan returns 201
2026-04-24 11:00:23 +03:00
6b310c8c9c
add plan controller test scaffold
2026-04-24 11:00:06 +03:00
49663d70d9
distribute scheduled nodes evenly by filling days sequentially
2026-04-23 21:06:22 +03:00
358694e7e3
nodes are scheduled on different days according to dates provided
2026-04-23 20:54:08 +03:00
858f2e075f
test for date end being before date start
2026-04-23 20:50:26 +03:00
a752ff9ba5
add start and end date and test for null entries
2026-04-23 20:44:14 +03:00
f8a1c2616d
test that nonexistant text will throw error
2026-04-23 20:20:53 +03:00
c32087c35d
move instantiation of date time immutable to use case. request gets a string
2026-04-23 20:09:17 +03:00
82dab3b90f
test create text controller returns 400 when name missing
2026-04-19 23:38:02 +03:00
32bf96dd99
test bulk create nodes throws if count is less than one
2026-04-19 23:36:18 +03:00
1a4144c278
test create scheduled node validates null fields
2026-04-19 23:14:25 +03:00
1ce3799044
test create user use case validates null email
2026-04-19 23:13:34 +03:00
86052efbcb
test create plan use case validates null fields
2026-04-19 23:12:41 +03:00
f6ec4a2550
test create text use case validates null name
2026-04-19 23:11:43 +03:00
a429b647cc
test create node use case validates null fields
2026-04-19 23:10:46 +03:00
5de15ef52d
test bulk create nodes validates null fields
2026-04-19 23:09:40 +03:00
189493b045
php cs fixer
2026-04-19 23:07:48 +03:00