diff --git a/tests/ConfigFactoryTest.php b/tests/ConfigFactoryTest.php index ac32c40..225ae37 100644 --- a/tests/ConfigFactoryTest.php +++ b/tests/ConfigFactoryTest.php @@ -23,6 +23,7 @@ public function testItThrowsExceptionIfDocumentationConfigNotFound(): void /** * @throws L5SwaggerException + * @dataProvider configDataProvider */ #[DataProvider('configDataProvider')] public function testCanMergeConfigurationDeep(array $data, array $assert): void @@ -52,7 +53,7 @@ public function testCanMergeConfigurationDeep(array $data, array $assert): void public static function configDataProvider(): \Iterator { yield [ - [ + 'data' => [ 'default' => 'v2', 'documentations' => [ 'v2' => [ @@ -66,7 +67,7 @@ public static function configDataProvider(): \Iterator ], ], ], - [ + 'assert' => [ 'api' => [ 'title' => 'Api V2', ], @@ -83,7 +84,7 @@ public static function configDataProvider(): \Iterator ], ]; yield [ - [ + 'data' => [ 'default' => 'v1', 'documentations' => [ 'v1' => [ @@ -99,7 +100,7 @@ public static function configDataProvider(): \Iterator ], ], ], - [ + 'assert' => [ 'api' => [ 'title' => 'Api V1', ], diff --git a/tests/ConsoleTest.php b/tests/ConsoleTest.php index df3b275..579e05f 100644 --- a/tests/ConsoleTest.php +++ b/tests/ConsoleTest.php @@ -15,6 +15,7 @@ class ConsoleTest extends TestCase /** * @throws L5SwaggerException * @throws FileNotFoundException + * @dataProvider provideGenerateCommands */ #[DataProvider('provideGenerateCommands')] public function testCanGenerate(string $artisanCommand): void