Commit graph

114 commits

Author SHA1 Message Date
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
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
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
de744c9b15
plan repo with create method 2026-02-23 10:41:22 +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
4f83ae7926
add find by text id method to node repo w/ impl 2026-02-21 22:43:55 +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
021a2a6f15
add parent node to node, fix type of null 2026-02-21 22:17:59 +02:00