From 3dabd031f4b04d5c37321676b43342a25478acaf Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Tue, 26 Jul 2022 20:42:35 +0200 Subject: [PATCH] fix tests failed in exports --- .../ChillMainBundle/Test/Export/AbstractAggregatorTest.php | 1 + src/Bundle/ChillMainBundle/Test/Export/AbstractExportTest.php | 3 +++ .../ChillPersonBundle/Tests/Export/Export/CountPersonTest.php | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/Test/Export/AbstractAggregatorTest.php b/src/Bundle/ChillMainBundle/Test/Export/AbstractAggregatorTest.php index 1a91d4629..cf5fe5c31 100644 --- a/src/Bundle/ChillMainBundle/Test/Export/AbstractAggregatorTest.php +++ b/src/Bundle/ChillMainBundle/Test/Export/AbstractAggregatorTest.php @@ -166,6 +166,7 @@ abstract class AbstractAggregatorTest extends KernelTestCase $this->assertContainsOnly( 'string', $queryKeys, + true, 'test that the query keys returned by `getQueryKeys` are only strings' ); $this->assertGreaterThanOrEqual( diff --git a/src/Bundle/ChillMainBundle/Test/Export/AbstractExportTest.php b/src/Bundle/ChillMainBundle/Test/Export/AbstractExportTest.php index d7da05aa7..a80753a46 100644 --- a/src/Bundle/ChillMainBundle/Test/Export/AbstractExportTest.php +++ b/src/Bundle/ChillMainBundle/Test/Export/AbstractExportTest.php @@ -140,6 +140,7 @@ abstract class AbstractExportTest extends WebTestCase $this->assertContainsOnly( 'string', $formattersTypes, + true, 'Test that the method `getAllowedFormattersTypes` returns an array of string' ); } @@ -174,6 +175,7 @@ abstract class AbstractExportTest extends WebTestCase $this->assertContainsOnly( 'string', $queryKeys, + true, 'test that the query keys returned by `getQueryKeys` are only strings' ); $this->assertGreaterThanOrEqual( @@ -395,6 +397,7 @@ abstract class AbstractExportTest extends WebTestCase $this->assertContainsOnly( 'string', $export->supportsModifiers(), + true, 'Test that the `supportsModifiers` method returns only strings' ); } elseif ($query instanceof NativeQuery) { diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Export/CountPersonTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Export/CountPersonTest.php index 831de2933..fe7d91753 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Export/CountPersonTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Export/CountPersonTest.php @@ -30,7 +30,7 @@ final class CountPersonTest extends AbstractExportTest { self::bootKernel(); - $this->export = self::$container->get('chill.person.export.export_count_person'); + $this->export = self::$container->get('chill.person.export.count_person'); } public function getExport()