fix tests failed in exports

This commit is contained in:
Mathieu Jaumotte 2022-07-26 20:42:35 +02:00
parent 232cf96cb2
commit 3dabd031f4
3 changed files with 5 additions and 1 deletions

View File

@ -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(

View File

@ -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) {

View File

@ -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()