Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Oct 14, 2023
1 parent 4ebfb9b commit 995912d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"phpunit/phpunit": "^9.5.13",
"psalm/plugin-phpunit": "^0.18",
"psalm/plugin-symfony": "^5.0",
"rector/rector": "^0.17",
"rector/rector": "^0.18",
"symfony/browser-kit": "^5.4 || ^6.2",
"symfony/cache": "^5.4 || ^6.2",
"symfony/filesystem": "^5.4 || ^6.2",
Expand Down
4 changes: 2 additions & 2 deletions tests/Functional/SmokeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
final class SmokeTest extends WebTestCase
{
/**
* @dataProvider provideUrls
* @dataProvider provideSuccessfulResponsesCases
*/
public function testSuccessfulResponses(string $url): void
{
Expand All @@ -34,7 +34,7 @@ public function testSuccessfulResponses(string $url): void
/**
* @return iterable<array{string}>
*/
public function provideUrls(): iterable
public function provideSuccessfulResponsesCases(): iterable
{
yield 'index' => ['/audit'];
yield 'view revision' => ['/audit/viewrev/1'];
Expand Down
6 changes: 3 additions & 3 deletions tests/RelationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -928,9 +928,9 @@ public function testOneToManyCollectionDeletedElements(): void
$ids[] = $ownedElement->getId();
}

static::assertTrue(\in_array($ownedOne->getId(), $ids, true));
static::assertTrue(\in_array($ownedThree->getId(), $ids, true));
static::assertTrue(\in_array($ownedFour->getId(), $ids, true));
static::assertContains($ownedOne->getId(), $ids);
static::assertContains($ownedThree->getId(), $ids);
static::assertContains($ownedFour->getId(), $ids);
}

public function testOneToOneEdgeCase(): void
Expand Down
16 changes: 7 additions & 9 deletions tests/Utils/SimpleDiffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
final class SimpleDiffTest extends TestCase
{
/**
* @dataProvider dataDiff
* @dataProvider provideDiffCases
*/
public function testDiff(string $old, string $new, string $output): void
{
Expand All @@ -32,14 +32,12 @@ public function testDiff(string $old, string $new, string $output): void
/**
* @return iterable<array{string, string, string}>
*/
public static function dataDiff(): iterable
public static function provideDiffCases(): iterable
{
return [
['Foo', 'foo', '<del>Foo</del> <ins>foo</ins> '],
['Foo Foo', 'Foo', 'Foo <del>Foo</del> '],
['Foo', 'Foo Foo', 'Foo <ins>Foo</ins> '],
['Foo Bar Baz', 'Foo Foo Foo', 'Foo <del>Bar Baz</del> <ins>Foo Foo</ins> '],
['Foo Bar Baz', 'Foo Baz', 'Foo <del>Bar</del> Baz '],
];
yield ['Foo', 'foo', '<del>Foo</del> <ins>foo</ins> '];
yield ['Foo Foo', 'Foo', 'Foo <del>Foo</del> '];
yield ['Foo', 'Foo Foo', 'Foo <ins>Foo</ins> '];
yield ['Foo Bar Baz', 'Foo Foo Foo', 'Foo <del>Bar Baz</del> <ins>Foo Foo</ins> '];
yield ['Foo Bar Baz', 'Foo Baz', 'Foo <del>Bar</del> Baz '];
}
}

0 comments on commit 995912d

Please sign in to comment.