From cb6d6d92657752fa42a677d6ea321d0012585726 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 25 Apr 2024 14:29:10 +0000 Subject: [PATCH] test fixes --- Controller/BackendController.php | 2 +- tests/Models/TaskMapperTest.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Controller/BackendController.php b/Controller/BackendController.php index bfe506a..847cda6 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -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') diff --git a/tests/Models/TaskMapperTest.php b/tests/Models/TaskMapperTest.php index de59ce4..476ef0f 100755 --- a/tests/Models/TaskMapperTest.php +++ b/tests/Models/TaskMapperTest.php @@ -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);