Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaOnLine committed Aug 9, 2024
1 parent 092feaa commit 4fff6f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/ConfigFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public function testItThrowsExceptionIfDocumentationConfigNotFound(): void

/**
* @throws L5SwaggerException
* @dataProvider configDataProvider
*/
#[DataProvider('configDataProvider')]
public function testCanMergeConfigurationDeep(array $data, array $assert): void
Expand Down Expand Up @@ -52,7 +53,7 @@ public function testCanMergeConfigurationDeep(array $data, array $assert): void
public static function configDataProvider(): \Iterator
{
yield [
[
'data' => [
'default' => 'v2',
'documentations' => [
'v2' => [
Expand All @@ -66,7 +67,7 @@ public static function configDataProvider(): \Iterator
],
],
],
[
'assert' => [
'api' => [
'title' => 'Api V2',
],
Expand All @@ -83,7 +84,7 @@ public static function configDataProvider(): \Iterator
],
];
yield [
[
'data' => [
'default' => 'v1',
'documentations' => [
'v1' => [
Expand All @@ -99,7 +100,7 @@ public static function configDataProvider(): \Iterator
],
],
],
[
'assert' => [
'api' => [
'title' => 'Api V1',
],
Expand Down
1 change: 1 addition & 0 deletions tests/ConsoleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class ConsoleTest extends TestCase
/**
* @throws L5SwaggerException
* @throws FileNotFoundException
* @dataProvider provideGenerateCommands
*/
#[DataProvider('provideGenerateCommands')]
public function testCanGenerate(string $artisanCommand): void
Expand Down

0 comments on commit 4fff6f2

Please sign in to comment.