Skip to content

Commit

Permalink
test: created task belongs to group (taskable)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomloprod committed May 20, 2024
1 parent f1e5b69 commit f7ea023
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/GroupTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f7ea023

Please sign in to comment.