Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Sep 28, 2023
1 parent 95cdf2d commit 858600c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"phpunit/phpunit": "^9.5",
"psalm/plugin-phpunit": "^0.18",
"psalm/plugin-symfony": "^5.0",
"rector/rector": "^0.17",
"rector/rector": "^0.18",
"sonata-project/doctrine-orm-admin-bundle": "^4.0",
"symfony/browser-kit": "^5.4 || ^6.2",
"symfony/css-selector": "^5.4 || ^6.2",
Expand Down
4 changes: 2 additions & 2 deletions tests/Checker/TranslatableCheckerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function setUp(): void
/**
* @return iterable<array{object|class-string, array<class-string>, array<class-string>}>
*/
public function provideTestIsTranslatable(): iterable
public function provideIsTranslatableCases(): iterable
{
yield 'object-by-model' => [
new ModelCustomTranslatable(),
Expand Down Expand Up @@ -61,7 +61,7 @@ public function provideTestIsTranslatable(): iterable
}

/**
* @dataProvider provideTestIsTranslatable
* @dataProvider provideIsTranslatableCases
*
* @phpstan-param object|class-string $classOrObject
* @phpstan-param class-string[] $supportedModels
Expand Down
12 changes: 6 additions & 6 deletions tests/Functional/GedmoCRUDTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected function setUp(): void
}

/**
* @dataProvider provideLocales
* @dataProvider provideListCases
*/
public function testList(string $locale, string $name): void
{
Expand All @@ -42,7 +42,7 @@ public function testList(string $locale, string $name): void
/**
* @return iterable<array{string, string}>
*/
public function provideLocales(): iterable
public function provideListCases(): iterable
{
yield 'default english' => ['', 'Novel'];
yield 'english' => ['en', 'Novel'];
Expand All @@ -51,7 +51,7 @@ public function provideLocales(): iterable
}

/**
* @dataProvider provideLocalesToCreate
* @dataProvider provideCreateCases
*/
public function testCreate(string $locale, string $newName): void
{
Expand Down Expand Up @@ -87,7 +87,7 @@ public function testCreate(string $locale, string $newName): void
/**
* @return iterable<array{string, string}>
*/
public function provideLocalesToCreate(): iterable
public function provideCreateCases(): iterable
{
yield 'default english' => ['', 'Default New Novel'];
yield 'english' => ['en', 'New Novel'];
Expand All @@ -96,7 +96,7 @@ public function provideLocalesToCreate(): iterable
}

/**
* @dataProvider provideLocalesToEdit
* @dataProvider provideEditCases
*/
public function testEdit(string $locale, string $editedName): void
{
Expand Down Expand Up @@ -128,7 +128,7 @@ public function testEdit(string $locale, string $editedName): void
/**
* @return iterable<array{string, string}>
*/
public function provideLocalesToEdit(): iterable
public function provideEditCases(): iterable
{
yield 'default english' => ['', 'Edited Default Novel'];
yield 'english' => ['en', 'Edited Novel'];
Expand Down
12 changes: 6 additions & 6 deletions tests/Functional/KnpCRUDTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected function setUp(): void
}

/**
* @dataProvider provideLocales
* @dataProvider provideListCases
*/
public function testList(string $locale, string $name): void
{
Expand All @@ -42,7 +42,7 @@ public function testList(string $locale, string $name): void
/**
* @return iterable<array{string, string}>
*/
public function provideLocales(): iterable
public function provideListCases(): iterable
{
yield 'default english' => ['', 'Novel'];
yield 'english' => ['en', 'Novel'];
Expand All @@ -51,7 +51,7 @@ public function provideLocales(): iterable
}

/**
* @dataProvider provideLocalesToCreate
* @dataProvider provideCreateCases
*/
public function testCreate(string $locale, string $newName): void
{
Expand Down Expand Up @@ -87,7 +87,7 @@ public function testCreate(string $locale, string $newName): void
/**
* @return iterable<array{string, string}>
*/
public function provideLocalesToCreate(): iterable
public function provideCreateCases(): iterable
{
yield 'default english' => ['', 'Default New Novel'];
yield 'english' => ['en', 'New Novel'];
Expand All @@ -96,7 +96,7 @@ public function provideLocalesToCreate(): iterable
}

/**
* @dataProvider provideLocalesToEdit
* @dataProvider provideEditCases
*/
public function testEdit(string $locale, string $editedName): void
{
Expand Down Expand Up @@ -128,7 +128,7 @@ public function testEdit(string $locale, string $editedName): void
/**
* @return iterable<array{string, string}>
*/
public function provideLocalesToEdit(): iterable
public function provideEditCases(): iterable
{
yield 'default english' => ['', 'Edited Default Novel'];
yield 'english' => ['en', 'Edited Novel'];
Expand Down
4 changes: 2 additions & 2 deletions tests/Provider/Knplabs/LocaleProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
final class LocaleProviderTest extends TestCase
{
/**
* @dataProvider provideValues
* @dataProvider provideUsesTheProperProviderBasedOnRequestCases
*/
public function testUsesTheProperProviderBasedOnRequest(
string $expectedLocale,
Expand Down Expand Up @@ -53,7 +53,7 @@ public function testUsesTheProperProviderBasedOnRequest(
/**
* @return iterable<array{string, string, string, bool}>
*/
public function provideValues(): iterable
public function provideUsesTheProperProviderBasedOnRequestCases(): iterable
{
yield 'with sonata enabled it uses sonata provider' => ['en', 'es', 'en', true];
yield 'with sonata disabled it uses knp provider' => ['es', 'es', 'en', false];
Expand Down

0 comments on commit 858600c

Please sign in to comment.