allow dynamic export types (#703)
This commit is contained in:
committed by
Kevin Papst
parent
ccf4e32523
commit
f0f757cf75
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user