Commit graph

125 commits

Author SHA1 Message Date
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
612564e9fb
test controller 2026-04-18 23:04:25 +03:00
3670fdd869
tests for bulk create nodes 2026-04-18 23:02:32 +03:00
56bdee86cc
fix controller tests to pass in data in proper form 2026-04-18 21:59:57 +03:00
1c1f8b5a58
add tests for node controller
get nodes of text and create node
2026-04-18 21:27:36 +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
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
98f597914a
test text controller methods 2026-04-17 09:55:29 +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
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
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
fd0ee57149
test scheduled node belongs to plan 2026-02-25 10:15:49 +02:00
49328404c9
scheduled node repo with create method 2026-02-23 22:40:15 +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