Commit graph

37 commits

Author SHA1 Message Date
acdf703d80
scope text endpoints by ownership
TextRepository gains findByUser; JsonTextRepository and the
fake implement filtering by stored userId. TextController
splits the list endpoint into getMyTexts (own) and
getAllTexts (admin), and getText now requires the session
user, returning 403 to non-owners while admins bypass.
2026-05-02 21:42:51 +03:00
6668240126
update fake text repository for user
include the user when rebuilding Text instances in find and
getAll, preserving the rule that lookup methods return new
instances rather than stored references.
2026-05-02 21:27:45 +03:00
8eeff2c4fe
add update method to fake scheduled node repo 2026-05-01 09:05:55 +03:00
1b2e44389c
add completed bool to scheduled node 2026-05-01 09:04:18 +03:00
07e34ffd46
add find by user method in plan repo 2026-05-01 09:02:34 +03:00
0ea300f4d2
add find by user method for scheduled nodes 2026-04-28 22:37:28 +03:00
a9265abeae
add node to scheduled node 2026-04-27 09:28:43 +03:00
b41652af71
remove default value in fake token generator 2026-04-26 10:51:03 +03:00
13da7c311a
return utc from clock 2026-04-26 10:32:08 +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
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
a52bb18b13
store password hash in fake user repo 2026-04-24 13:19:00 +03:00
64edec5141
implement find by email in fake user repo 2026-04-24 13:16:29 +03:00
dcb4df043e
store is admin in fake user repo 2026-04-24 13:15:12 +03:00
189493b045
php cs fixer 2026-04-19 23:07:48 +03:00
0853aacdfb
implement getAll in fake text repo 2026-04-12 22:05:53 +03:00
844813499a
test that only nodes which are not parents are scheduled 2026-03-21 20:01:11 +02:00
bd2679f258
fix get by text id impl 2026-03-18 20:35:33 +02:00
309c085007
add find to fake scheduled node repo 2026-03-01 11:56:35 +02:00
449df516ae
add find method to plan 2026-02-25 10:17:13 +02:00
412a74e390
add plan to scheduled node 2026-02-25 10:16:59 +02:00
49328404c9
scheduled node repo with create method 2026-02-23 22:40:15 +02:00
21da1a8991
fix test warning of undefined array key 2026-02-23 11:05:09 +02:00
547558d850
add user to plan 2026-02-23 10:58:37 +02:00
de744c9b15
plan repo with create method 2026-02-23 10:41:22 +02:00
4f83ae7926
add find by text id method to node repo w/ impl 2026-02-21 22:43:55 +02:00
021a2a6f15
add parent node to node, fix type of null 2026-02-21 22:17:59 +02:00
483110f773
add find method to node repo and impl to fake repo 2026-02-21 22:14:10 +02:00
424d46104b
fix test warning for undefined array key by using array_find 2026-02-21 21:09:08 +02:00
ba65f8fa42
impl find method in fake text repo 2026-02-20 12:02:00 +02:00
c0994d806e
add text to node 2026-02-20 12:01:53 +02:00
c8f5f1343e
fake node repo 2026-02-19 21:25:55 +02:00
467e5288d7
fake test repo 2026-02-19 21:00:02 +02:00
1c6fd5047a
fake user repo 2026-02-14 21:56:59 +02:00