test fixes

This commit is contained in:
Dennis Eichhorn 2024-04-25 14:29:10 +00:00
parent 53b664a617
commit cb6d6d9265
2 changed files with 3 additions and 2 deletions

View File

@ -275,7 +275,7 @@ final class BackendController extends Controller implements DashboardElementInte
->with('tags/title') ->with('tags/title')
->with('taskElements') ->with('taskElements')
->with('taskElements/createdBy') ->with('taskElements/createdBy')
->with('taskElements/media') ->with('taskElements/files')
->with('taskElements/accRelation') ->with('taskElements/accRelation')
->with('taskElements/accRelation/relation') ->with('taskElements/accRelation/relation')
->with('attributes') ->with('attributes')

View File

@ -95,13 +95,14 @@ final class TaskMapperTest extends \PHPUnit\Framework\TestCase
$taskR = TaskMapper::get() $taskR = TaskMapper::get()
->with('files') ->with('files')
->with('taskElements') ->with('taskElements')
->with('taskElements/media') ->with('taskElements/files')
->with('taskElements/accRelation') ->with('taskElements/accRelation')
->with('taskElements/accRelation/relation') ->with('taskElements/accRelation/relation')
->with('taskElements/grpRelation') ->with('taskElements/grpRelation')
->with('taskElements/grpRelation/relation') ->with('taskElements/grpRelation/relation')
->where('id', $task->id) ->where('id', $task->id)
->execute(); ->execute();
self::assertEquals($task->createdAt->format('Y-m-d'), $taskR->createdAt->format('Y-m-d')); 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->start->format('Y-m-d'), $taskR->start->format('Y-m-d'));
self::assertEquals($task->getCreatedBy()->id, $taskR->getCreatedBy()->id); self::assertEquals($task->getCreatedBy()->id, $taskR->getCreatedBy()->id);