From 7c4c9cb9085f98006ed8a02f24add56cd07fda74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20L=C3=B3pez?= Date: Mon, 20 May 2024 18:50:41 +0200 Subject: [PATCH] chore: code style on GroupTest --- tests/GroupTest.php | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/tests/GroupTest.php b/tests/GroupTest.php index 2ecfedd..9db4d2e 100644 --- a/tests/GroupTest.php +++ b/tests/GroupTest.php @@ -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 { @@ -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 { @@ -42,8 +39,7 @@ $group->start(); - expect($task->hasStarted()) - ->toBeTrue(); + expect($task->hasStarted())->toBeTrue(); }); it('does not start any task if no tasks exist', function (): void { @@ -51,6 +47,5 @@ $group->start(); - expect($group->getLastTask()) - ->toBeNull(); + expect($group->getLastTask())->toBeNull(); });