mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-03-04 04:59:41 +00:00
Rector changes and immplementations of required methods
This commit is contained in:
@@ -142,7 +142,7 @@ abstract class AbstractExportTest extends WebTestCase
|
||||
/**
|
||||
* Test the formatters type are string.
|
||||
*/
|
||||
public function testGetAllowedFormattersType()
|
||||
public function testGetAllowedFormattersType(): void
|
||||
{
|
||||
foreach ($this->getExports() as $export) {
|
||||
$formattersTypes = $export->getAllowedFormattersTypes();
|
||||
@@ -159,7 +159,7 @@ abstract class AbstractExportTest extends WebTestCase
|
||||
/**
|
||||
* Test that the description is not empty.
|
||||
*/
|
||||
public function testGetDescription()
|
||||
public function testGetDescription(): void
|
||||
{
|
||||
foreach ($this->getExports() as $export) {
|
||||
$this->assertIsString(
|
||||
@@ -179,7 +179,7 @@ abstract class AbstractExportTest extends WebTestCase
|
||||
*
|
||||
* @dataProvider dataProviderGetQueryKeys
|
||||
*/
|
||||
public function testGetQueryKeys(array $data)
|
||||
public function testGetQueryKeys(array $data): void
|
||||
{
|
||||
foreach ($this->getExports() as $export) {
|
||||
$queryKeys = $export->getQueryKeys($data);
|
||||
@@ -212,7 +212,7 @@ abstract class AbstractExportTest extends WebTestCase
|
||||
*
|
||||
* @dataProvider dataProviderInitiateQuery
|
||||
*/
|
||||
public function testGetResultsAndLabels($modifiers, $acl, array $data)
|
||||
public function testGetResultsAndLabels($modifiers, $acl, array $data): void
|
||||
{
|
||||
foreach ($this->getExports() as $export) {
|
||||
// it is more convenient to group the `getResult` and `getLabels` test
|
||||
@@ -284,7 +284,7 @@ abstract class AbstractExportTest extends WebTestCase
|
||||
/**
|
||||
* Test that the getType method return a string.
|
||||
*/
|
||||
public function testGetType()
|
||||
public function testGetType(): void
|
||||
{
|
||||
foreach ($this->getExports() as $export) {
|
||||
$this->assertIsString(
|
||||
@@ -306,7 +306,7 @@ abstract class AbstractExportTest extends WebTestCase
|
||||
*
|
||||
* @dataProvider dataProviderInitiateQuery
|
||||
*/
|
||||
public function testInitiateQuery(mixed $modifiers, mixed $acl, mixed $data)
|
||||
public function testInitiateQuery(mixed $modifiers, mixed $acl, mixed $data): void
|
||||
{
|
||||
foreach ($this->getExports() as $export) {
|
||||
$query = $export->initiateQuery($modifiers, $acl, $data);
|
||||
@@ -344,7 +344,7 @@ abstract class AbstractExportTest extends WebTestCase
|
||||
/**
|
||||
* Test required role is an instance of Role.
|
||||
*/
|
||||
public function testRequiredRole()
|
||||
public function testRequiredRole(): void
|
||||
{
|
||||
foreach ($this->getExports() as $export) {
|
||||
$role = $export->requiredRole();
|
||||
@@ -361,7 +361,7 @@ abstract class AbstractExportTest extends WebTestCase
|
||||
*
|
||||
* @dataProvider dataProviderInitiateQuery
|
||||
*/
|
||||
public function testSupportsModifier(mixed $modifiers, mixed $acl, mixed $data)
|
||||
public function testSupportsModifier(mixed $modifiers, mixed $acl, mixed $data): void
|
||||
{
|
||||
foreach ($this->getExports() as $export) {
|
||||
$query = $export->initiateQuery($modifiers, $acl, $data);
|
||||
|
||||
Reference in New Issue
Block a user