Commit graph

49 commits

Author SHA1 Message Date
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
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
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
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
b2fc6a7ded
test fake user repo find by email 2026-04-24 13:16:02 +03:00
160181888d
test user has is admin flag 2026-04-24 13:14:20 +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
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
3670fdd869
tests for bulk create nodes 2026-04-18 23:02:32 +03:00
f6791b6459
unit test for create text that it creates a root node as well.
refactor to setUp as well
2026-04-17 10:49:41 +03:00
844813499a
test that only nodes which are not parents are scheduled 2026-03-21 20:01:11 +02:00
a32989334e
test that creating a plan is done in context of a text and schedules all nodes of text 2026-03-01 11:55:22 +02:00
2affd2a84e
test that error is thrown if plan doesnt exist for creating scheduled node 2026-02-25 10:21:05 +02:00
fd0ee57149
test scheduled node belongs to plan 2026-02-25 10:15:49 +02:00
f7d8b425c3
test scheduled node is created 2026-02-23 22:36:06 +02:00
f0eb4cf5d5
test that use case throws error if non existant user id given 2026-02-23 11:05:42 +02:00
baa5dee0b3
test plan has user 2026-02-23 10:57:56 +02:00
66c49e07dd
refactor to set up method 2026-02-23 10:45:50 +02:00
9f29b9b94e
test create plan with request 2026-02-23 10:41:31 +02:00
d1eb648b73
test and impl that only one root node exists per text
in practice this means only one node with a null parentNode
2026-02-21 22:44:18 +02:00
1c28f46872
remove unused variables 2026-02-21 22:43:09 +02:00
143a4ffe39
test nonexistant parent node id throws exception 2026-02-21 22:23:30 +02:00
725b895de9
test node has nullable parent node 2026-02-21 22:13:43 +02:00
3b79417065
test that create node validates existing text 2026-02-21 21:08:17 +02:00
cd9e96f7b1
add setup method and test that node has a text 2026-02-20 12:02:00 +02:00
dce04278ea
test that node is created 2026-02-19 21:25:08 +02:00
29f93e6b0d
test that text is created 2026-02-19 20:59:49 +02:00
9f38708f7b
rename fake user repo, request doesnt have value object 2026-02-14 21:56:22 +02:00
0e2ddd6a5c
test user is created with email 2026-02-14 20:50:03 +02:00