Skip to content

Commit 306a9f2

Browse files
AC-12092_PHPUnit10: PHPUnit Failure fix
1 parent 4ef3660 commit 306a9f2

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

app/code/Magento/ConfigurableProduct/Test/Unit/Model/Product/Type/VariationMatrixTest.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ public function testGetVariations($expectedResult)
4343
* Test data provider.
4444
*/
4545
public static function variationProvider()
46-
{
46+
{
4747
return [
48-
'with_attribute_id' => [
49-
'expectedResult' => [
48+
[
49+
[
5050
'result' => [
5151
[
5252
130 => [
@@ -101,10 +101,8 @@ public static function variationProvider()
101101
],
102102
],
103103
]
104-
]
105-
],
106-
'without_attribute_id' => [
107-
'expectedResult' => [
104+
],
105+
[
108106
'result' => [
109107
[
110108
130 => [

app/code/Magento/Integration/Test/Unit/Block/Adminhtml/Integration/Edit/Tab/WebapiTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public static function canShowTabProvider()
112112
],
113113
'config integration data' => [
114114
'integrationData' => [Info::DATA_SETUP_TYPE => IntegrationModel::TYPE_CONFIG],
115-
'expectedValue' => true
115+
'expectedValue' => false
116116
]
117117
];
118118
}
@@ -227,7 +227,7 @@ public static function isEverythingAllowedWithSavedFromDataProvider()
227227
/**
228228
* @param array $integrationData
229229
* @param array $selectedResources
230-
* @return Webapi
230+
* @return Webapi|object
231231
*/
232232
private function getWebapiBlock($integrationData = [], array $selectedResources = [])
233233
{

0 commit comments

Comments
 (0)