allow dynamic export types (#703)

This commit is contained in:
Simone Gasparini
2019-04-25 19:33:06 +02:00
committed by Kevin Papst
parent ccf4e32523
commit f0f757cf75
4 changed files with 6 additions and 18 deletions

View File

@@ -118,14 +118,11 @@ class ExportQueryTest extends BaseQueryTest
{
$this->assertNull($sut->getType());
$allowed = ['html', 'csv', 'pdf', 'xlsx', 'ods'];
$exportTypes = ['html', 'csv', 'pdf', 'xlsx', 'ods'];
foreach ($allowed as $type) {
foreach ($exportTypes as $type) {
$sut->setType($type);
$this->assertEquals($type, $sut->getType());
}
$sut->setType('foo');
$this->assertEquals('ods', $sut->getType());
}
}