mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-01-30 15:48:40 +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('taskElements')
|
||||
->with('taskElements/createdBy')
|
||||
->with('taskElements/media')
|
||||
->with('taskElements/files')
|
||||
->with('taskElements/accRelation')
|
||||
->with('taskElements/accRelation/relation')
|
||||
->with('attributes')
|
||||
|
|
|
|||
|
|
@ -95,13 +95,14 @@ final class TaskMapperTest extends \PHPUnit\Framework\TestCase
|
|||
$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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user