Skip to content

Commit e02f108

Browse files
committed
ACP2E-2689: No Appropriate error message when website id is wrong in the request
- Fixed the static test build failure.
1 parent 8dd9af1 commit e02f108

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/tests/api-functional/testsuite/Magento/Catalog/Api/TierPriceStorageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ public function testCheckWebsite()
345345
'extension_attributes' => []
346346
];
347347
$response = $this->_webApiCall($serviceInfo, ['prices' => [$tierPriceWithInvalidWebsiteId]]);
348-
if (isset($response) && is_array($response)) {
348+
if (is_array($response) && count($response) > 0) {
349349
$this->assertNotEmpty($response);
350350
// phpcs:disable Generic.Files.LineLength.TooLong
351351
$message = 'Invalid attribute Website ID = %websiteId. Row ID: SKU = %SKU, Website ID: %websiteId, Customer Group: %customerGroup, Quantity: %qty.';

0 commit comments

Comments
 (0)