Skip to content

Commit

Permalink
chore: code style on GroupTest
Browse files Browse the repository at this point in the history
  • Loading branch information
tomloprod committed May 20, 2024
1 parent f7ea023 commit 7c4c9cb
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions tests/GroupTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
it('can be created with a name', function (): void {
$group = new Group('GroupName');

expect($group->name)
->toBe('GroupName');
expect($group->name)->toBe('GroupName');
});

it('can add a task', function (): void {
Expand All @@ -29,11 +28,9 @@

$group->replaceLastTask($task2);

expect($group->getTasks())
->not->toContain($task1);
expect($group->getTasks())->not->toContain($task1);

expect($group->getTasks())
->toContain($task2);
expect($group->getTasks())->toContain($task2);
});

it('can start the last task if it exists', function (): void {
Expand All @@ -42,15 +39,13 @@

$group->start();

expect($task->hasStarted())
->toBeTrue();
expect($task->hasStarted())->toBeTrue();
});

it('does not start any task if no tasks exist', function (): void {
$group = new Group('GroupName');

$group->start();

expect($group->getLastTask())
->toBeNull();
expect($group->getLastTask())->toBeNull();
});

0 comments on commit 7c4c9cb

Please sign in to comment.