align test fixtures to strict types

Cette révision appartient à :
Daniel Seifert 2024-05-13 15:34:21 +02:00
Parent 76fd879554
révision 76d72c8546
3 fichiers modifiés avec 7 ajouts et 7 suppressions

Voir le fichier

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

Voir le fichier

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

Voir le fichier

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