align test fixtures to strict types

This commit is contained in:
Daniel Seifert 2024-05-13 15:34:21 +02:00
bovenliggende 76fd879554
commit 76d72c8546
3 gewijzigde bestanden met toevoegingen van 7 en 7 verwijderingen

Bestand weergeven

@ -267,7 +267,7 @@ class ConfigurationTest extends d3ModCfgUnitTestCase
*/
public function canGetActionsByGroup()
{
$actionList = ['abc' => '123', 'def' => '456'];
$actionList = ['abc' => ['123'], 'def' => ['456']];
$this->setValue(
$this->_oModel,
@ -276,7 +276,7 @@ class ConfigurationTest extends d3ModCfgUnitTestCase
);
$this->assertSame(
'456',
['456'],
$this->callMethod(
$this->_oModel,
'getActionsByGroup',
@ -292,7 +292,7 @@ class ConfigurationTest extends d3ModCfgUnitTestCase
*/
public function canGetExportsByGroup()
{
$exportList = ['abc' => '123', 'def' => '456'];
$exportList = ['abc' => ['123'], 'def' => ['456']];
$this->setValue(
$this->_oModel,
@ -301,7 +301,7 @@ class ConfigurationTest extends d3ModCfgUnitTestCase
);
$this->assertSame(
'456',
['456'],
$this->callMethod(
$this->_oModel,
'getExportsByGroup',

Bestand weergeven

@ -572,7 +572,7 @@ class ExportBaseTest extends d3ModCfgUnitTestCase
$result = $this->callMethod(
$this->_oModel,
'getExportData',
[[$query], ['param1', 'param2']]
[[$query, ['param1', 'param2']]]
);
$this->assertSame(

Bestand weergeven

@ -55,12 +55,12 @@ class JsonTest extends ExportRendererTest
}
/**
* @return \string[][]
* @return string[][]
*/
public function canGetContentDataProvider(): array
{
return [
'valid' => [['value1', 'value2'], false],
'valid' => [['value1', "value2"], false],
'invalid' => [["text" => "\xB1\x31"], true], // malformed UTF8 chars
];
}