Skip to content

Commit b0646de

Browse files
committed
MC-40559 : Stabilize Integration Tests
1 parent 274cae5 commit b0646de

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dev/tests/integration/testsuite/Magento/Checkout/Controller/Cart/AddTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,11 @@ public function testAddProductFromUnavailableWebsite(): void
170170
public function testAddProductWithUnavailableQty(): void
171171
{
172172
$product = $this->productRepository->get('simple-1');
173-
$postData = ['product' => $product->getId(), 'qty' => 1000];
173+
$postData = ['product' => $product->getId(), 'qty' => '1000'];
174174
$this->dispatchAddToCartRequest($postData);
175-
$this->assertRedirect($this->stringContains($product->getProductUrl()));
176175
$message = (string)__('The requested qty is not available');
177176
$this->assertSessionMessages($this->containsEqual($message), MessageInterface::TYPE_ERROR);
177+
$this->assertRedirect($this->stringContains($product->getProductUrl()));
178178
}
179179

180180
/**

dev/tests/integration/testsuite/Magento/Swatches/Block/Product/Renderer/Configurable/ProductPageViewTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ private function assertSwatchConfig(array $actualData, array $expectedData): voi
355355
$this->assertEquals($expectedData[$currentType]['additional_data'], $actualDataItem['additional_data']);
356356
unset($actualDataItem['additional_data']);
357357
foreach ($actualDataItem as $item) {
358-
$this->assertTrue(in_array($item, $expectedData[$currentType]));
358+
$this->assertContainsEquals($item, $expectedData[$currentType]);
359359
}
360360
}
361361
}

0 commit comments

Comments
 (0)