align test fixtures to strict types
Cette révision appartient à :
Parent
76fd879554
révision
76d72c8546
@ -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',
|
||||
|
@ -572,7 +572,7 @@ class ExportBaseTest extends d3ModCfgUnitTestCase
|
||||
$result = $this->callMethod(
|
||||
$this->_oModel,
|
||||
'getExportData',
|
||||
[[$query], ['param1', 'param2']]
|
||||
[[$query, ['param1', 'param2']]]
|
||||
);
|
||||
|
||||
$this->assertSame(
|
||||
|
@ -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
|
||||
];
|
||||
}
|
||||
|
Chargement…
Référencer dans un nouveau ticket
Block a user