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()
|
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',
|
||||||
|
@ -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(
|
||||||
|
@ -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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Chargement…
Référencer dans un nouveau ticket
Block a user