From f7ea023ab411aa0e0c968fcc0ee97a6873044f18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20L=C3=B3pez?= Date: Mon, 20 May 2024 18:49:55 +0200 Subject: [PATCH] test: created task belongs to group (taskable) --- tests/GroupTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/GroupTest.php b/tests/GroupTest.php index 3b9d3ab..2ecfedd 100644 --- a/tests/GroupTest.php +++ b/tests/GroupTest.php @@ -16,10 +16,9 @@ $group = new Group('GroupName'); $task = $group->createTask('TaskName'); - expect($group->getTasks()) - ->toContain($task); + expect($group->getTasks())->toContain($task); - /** @todo comprobar que task tenga el grupo (taskable) */ + expect($task->getTaskable())->toBe($group); }); it('can replace the last task', function (): void {