Commit graph

8 commits

Author SHA1 Message Date
db93871194
move inline use statements to file headers
two type hints introduced earlier on this branch referenced
classes by their fully-qualified names inline. hoist them to
the top-of-file use block per backend-context.md PHP rules.
2026-05-02 22:05:58 +03:00
ea6d65a77d
test text controller scoping and ownership
add failing tests for getMyTexts (own-only), getAllTexts
(admin), getText 403 for non-owner, and admin bypass on
getText. existing test_get_one_text updated to pass the
session user via the new request signature.
2026-05-02 21:41:52 +03:00
40fdf25da2
add tests for text user relationship
cover that the created Text carries the supplied User, that
the controller persists the user from the session attribute,
and that any userId in the request body is ignored.
2026-05-02 21:27:49 +03:00
82dab3b90f
test create text controller returns 400 when name missing 2026-04-19 23:38:02 +03:00
189493b045
php cs fixer 2026-04-19 23:07:48 +03:00
38d06fce43
refactor getNodes into a new NodeController and update refs 2026-04-17 11:29:55 +03:00
9b24fddec1
update text controller test with node repo 2026-04-17 11:01:20 +03:00
98f597914a
test text controller methods 2026-04-17 09:55:29 +03:00