Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Eichhorn committed Apr 25, 2024
1 parent 53b664a commit cb6d6d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Controller/BackendController.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public function viewTaskView(RequestAbstract $request, ResponseAbstract $respons
->with('tags/title')
->with('taskElements')
->with('taskElements/createdBy')
->with('taskElements/media')
->with('taskElements/files')
->with('taskElements/accRelation')
->with('taskElements/accRelation/relation')
->with('attributes')
Expand Down
3 changes: 2 additions & 1 deletion tests/Models/TaskMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,14 @@ public function testCRUD() : void
$taskR = TaskMapper::get()
->with('files')
->with('taskElements')
->with('taskElements/media')
->with('taskElements/files')
->with('taskElements/accRelation')
->with('taskElements/accRelation/relation')
->with('taskElements/grpRelation')
->with('taskElements/grpRelation/relation')
->where('id', $task->id)
->execute();

self::assertEquals($task->createdAt->format('Y-m-d'), $taskR->createdAt->format('Y-m-d'));
self::assertEquals($task->start->format('Y-m-d'), $taskR->start->format('Y-m-d'));
self::assertEquals($task->getCreatedBy()->id, $taskR->getCreatedBy()->id);
Expand Down

0 comments on commit cb6d6d9

Please sign in to comment.