Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 90ff989

Browse files
committed
#14020-Cart-Sales-Rule-with-negated-condition-over-special-price-does-not-work-for-configurable-products.
Fixed mock objects comparison
1 parent 8d417ac commit 90ff989

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/ConfigurableProduct/Test/Unit/Plugin/SalesRule/Model/Rule/Condition

1 file changed

+1
-1
lines changed

app/code/Magento/ConfigurableProduct/Test/Unit/Plugin/SalesRule/Model/Rule/Condition/ProductTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function testChildIsUsedForValidation()
161161
->willReturn([$childItem]);
162162
$item->expects($this->once())
163163
->method('setProduct')
164-
->with($simpleProductMock);
164+
->with($this->identicalTo($simpleProductMock));
165165

166166
$this->validator->setAttribute('special_price');
167167

0 commit comments

Comments
 (0)