mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
fix tests failed in exports
This commit is contained in:
parent
232cf96cb2
commit
3dabd031f4
@ -166,6 +166,7 @@ abstract class AbstractAggregatorTest extends KernelTestCase
|
|||||||
$this->assertContainsOnly(
|
$this->assertContainsOnly(
|
||||||
'string',
|
'string',
|
||||||
$queryKeys,
|
$queryKeys,
|
||||||
|
true,
|
||||||
'test that the query keys returned by `getQueryKeys` are only strings'
|
'test that the query keys returned by `getQueryKeys` are only strings'
|
||||||
);
|
);
|
||||||
$this->assertGreaterThanOrEqual(
|
$this->assertGreaterThanOrEqual(
|
||||||
|
@ -140,6 +140,7 @@ abstract class AbstractExportTest extends WebTestCase
|
|||||||
$this->assertContainsOnly(
|
$this->assertContainsOnly(
|
||||||
'string',
|
'string',
|
||||||
$formattersTypes,
|
$formattersTypes,
|
||||||
|
true,
|
||||||
'Test that the method `getAllowedFormattersTypes` returns an array of string'
|
'Test that the method `getAllowedFormattersTypes` returns an array of string'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -174,6 +175,7 @@ abstract class AbstractExportTest extends WebTestCase
|
|||||||
$this->assertContainsOnly(
|
$this->assertContainsOnly(
|
||||||
'string',
|
'string',
|
||||||
$queryKeys,
|
$queryKeys,
|
||||||
|
true,
|
||||||
'test that the query keys returned by `getQueryKeys` are only strings'
|
'test that the query keys returned by `getQueryKeys` are only strings'
|
||||||
);
|
);
|
||||||
$this->assertGreaterThanOrEqual(
|
$this->assertGreaterThanOrEqual(
|
||||||
@ -395,6 +397,7 @@ abstract class AbstractExportTest extends WebTestCase
|
|||||||
$this->assertContainsOnly(
|
$this->assertContainsOnly(
|
||||||
'string',
|
'string',
|
||||||
$export->supportsModifiers(),
|
$export->supportsModifiers(),
|
||||||
|
true,
|
||||||
'Test that the `supportsModifiers` method returns only strings'
|
'Test that the `supportsModifiers` method returns only strings'
|
||||||
);
|
);
|
||||||
} elseif ($query instanceof NativeQuery) {
|
} elseif ($query instanceof NativeQuery) {
|
||||||
|
@ -30,7 +30,7 @@ final class CountPersonTest extends AbstractExportTest
|
|||||||
{
|
{
|
||||||
self::bootKernel();
|
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()
|
public function getExport()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user