From 76d72c854605af47ac77e96b7903f58347305381 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Mon, 13 May 2024 15:34:21 +0200 Subject: [PATCH] align test fixtures to strict types --- tests/unit/Application/Model/ConfigurationTest.php | 8 ++++---- tests/unit/Application/Model/ExportBaseTest.php | 2 +- tests/unit/Application/Model/ExportRenderer/JsonTest.php | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/unit/Application/Model/ConfigurationTest.php b/tests/unit/Application/Model/ConfigurationTest.php index ab1f7b9..b793608 100644 --- a/tests/unit/Application/Model/ConfigurationTest.php +++ b/tests/unit/Application/Model/ConfigurationTest.php @@ -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', diff --git a/tests/unit/Application/Model/ExportBaseTest.php b/tests/unit/Application/Model/ExportBaseTest.php index 77677ce..9b5f2f6 100644 --- a/tests/unit/Application/Model/ExportBaseTest.php +++ b/tests/unit/Application/Model/ExportBaseTest.php @@ -572,7 +572,7 @@ class ExportBaseTest extends d3ModCfgUnitTestCase $result = $this->callMethod( $this->_oModel, 'getExportData', - [[$query], ['param1', 'param2']] + [[$query, ['param1', 'param2']]] ); $this->assertSame( diff --git a/tests/unit/Application/Model/ExportRenderer/JsonTest.php b/tests/unit/Application/Model/ExportRenderer/JsonTest.php index 07c576e..991b93a 100644 --- a/tests/unit/Application/Model/ExportRenderer/JsonTest.php +++ b/tests/unit/Application/Model/ExportRenderer/JsonTest.php @@ -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 ]; }