From 257c4e98cfd5b07df8fd14f6459962ad188d0fc1 Mon Sep 17 00:00:00 2001 From: Marick van Tuil Date: Wed, 9 Apr 2025 19:50:40 +0200 Subject: [PATCH 1/2] Fix test --- tests/ConfigHandlerTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/ConfigHandlerTest.php b/tests/ConfigHandlerTest.php index 193e663..c4ee1da 100644 --- a/tests/ConfigHandlerTest.php +++ b/tests/ConfigHandlerTest.php @@ -4,6 +4,7 @@ namespace Tests; +use PHPUnit\Framework\Attributes\DataProvider; use Tests\Support\SimpleJob; use Google\Cloud\Tasks\V2\Task; use PHPUnit\Framework\Attributes\Test; @@ -11,9 +12,7 @@ class ConfigHandlerTest extends TestCase { - /** - * @dataProvider handlerDataProvider - */ + #[DataProvider('handlerDataProvider')] public function test_it_allows_a_handler_url_to_contain_path(string $handler, string $expectedHandler): void { CloudTasksApi::fake(); From 43a6df81ed621017c9fbd3df3e783732f3306d56 Mon Sep 17 00:00:00 2001 From: marickvantuil <647007+marickvantuil@users.noreply.github.com> Date: Wed, 9 Apr 2025 17:51:05 +0000 Subject: [PATCH 2/2] Apply code style rules --- tests/ConfigHandlerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ConfigHandlerTest.php b/tests/ConfigHandlerTest.php index c4ee1da..9a3f9ca 100644 --- a/tests/ConfigHandlerTest.php +++ b/tests/ConfigHandlerTest.php @@ -4,10 +4,10 @@ namespace Tests; -use PHPUnit\Framework\Attributes\DataProvider; use Tests\Support\SimpleJob; use Google\Cloud\Tasks\V2\Task; use PHPUnit\Framework\Attributes\Test; +use PHPUnit\Framework\Attributes\DataProvider; use Stackkit\LaravelGoogleCloudTasksQueue\CloudTasksApi; class ConfigHandlerTest extends TestCase