mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-02-15 22:28:41 +00:00
test fixes
This commit is contained in:
parent
53b664a617
commit
cb6d6d9265
|
|
@ -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')
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user