diff --git a/Test/Export/AbstractExportTestHelper.php b/Test/Export/AbstractExportTest.php similarity index 97% rename from Test/Export/AbstractExportTestHelper.php rename to Test/Export/AbstractExportTest.php index bdee0f358..9b5bac92c 100644 --- a/Test/Export/AbstractExportTestHelper.php +++ b/Test/Export/AbstractExportTest.php @@ -30,7 +30,7 @@ use Symfony\Component\Security\Core\Role\Role; * * @author julien.fastre@champs-libres.coop */ -abstract class AbstractExportTestHelper extends KernelTestCase +abstract class AbstractExportTest extends KernelTestCase { /** * Create an instance of the report to test @@ -244,7 +244,8 @@ abstract class AbstractExportTestHelper extends KernelTestCase $this->assertContainsOnly("string", $queryKeys, "test that the query keys returned by `getQueryKeys` are only strings"); - + $this->assertGreaterThanOrEqual(1, count($queryKeys), + "test that there are at least one query key returned"); } /** @@ -312,7 +313,7 @@ abstract class AbstractExportTestHelper extends KernelTestCase && call_user_func($closure, '_header') !== '_header', // message sprintf("Test that the callable return by `getLabels` for key %s " - . "is a string and not empty", $key) + . "can provide an header", $key) ); }