From 3914853295d3c0a301f37537e33e962c4031cd0d Mon Sep 17 00:00:00 2001 From: Dumazeau Date: Tue, 23 Feb 2021 14:55:12 +0100 Subject: [PATCH] Edit CsvPaginatedGeneratorConfiguration to CsvQueryBuilderGeneratorConfiguration --- .../CsvQueryBuilderGeneratorConfigurationTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Tests/Configuration/CsvQueryBuilderGeneratorConfigurationTest.php b/Tests/Configuration/CsvQueryBuilderGeneratorConfigurationTest.php index 9974c7e..b11bd4c 100644 --- a/Tests/Configuration/CsvQueryBuilderGeneratorConfigurationTest.php +++ b/Tests/Configuration/CsvQueryBuilderGeneratorConfigurationTest.php @@ -50,6 +50,15 @@ public function testConfiguration(): void $this->assertSame(';', $configuration->getDelimiter()); $this->assertTrue($configuration->isWithHeader()); $this->assertInstanceOf(\Generator::class, $configuration->getObjects()); + + $entities = []; + + foreach ($configuration->getObjects() as $entity) { + $entities[] = $entity; + $this->assertInstanceOf(DummyEntity::class, $entity); + } + + $this->assertCount(5, $entities); } private function buildQueryBuilder(): QueryBuilder