diff --git a/dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/CategoryProductsVariantsTest.php b/dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/CategoryProductsVariantsTest.php index d9a46a4451212..6b57f84e4b9c4 100644 --- a/dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/CategoryProductsVariantsTest.php +++ b/dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/CategoryProductsVariantsTest.php @@ -74,28 +74,4 @@ private function assertSimpleProductFields($product, $actualResponse) $this->assertResponseFields($actualResponse, $assertionMap); } - - /** - * @param array $actualResponse - * @param array $assertionMap - */ - private function assertResponseFields($actualResponse, $assertionMap) - { - foreach ($assertionMap as $key => $assertionData) { - $expectedValue = isset($assertionData['expected_value']) - ? $assertionData['expected_value'] - : $assertionData; - $responseField = isset($assertionData['response_field']) ? $assertionData['response_field'] : $key; - self::assertNotNull( - $expectedValue, - "Value of '{$responseField}' field must not be NULL" - ); - self::assertEquals( - $expectedValue, - $actualResponse[$responseField], - "Value of '{$responseField}' field in response does not match expected value: " - . var_export($expectedValue, true) - ); - } - } }