File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
dev/tests/functional/tests/app/Magento/Wishlist/Test Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -75,13 +75,17 @@ public function processAssert(
75
75
}
76
76
77
77
$ productItem = $ wishlistIndex ->getWishlistBlock ()->getProductItemsBlock ()->getItemProduct ($ product );
78
- $ wishListProductRegularPrice = (float )$ productItem ->getRegularPrice ();
78
+ $ wishListProductRegularPrice = $ product instanceof BundleProduct
79
+ ? (float )$ productItem ->getPrice ()
80
+ : (float )$ productItem ->getRegularPrice ();
79
81
80
- \PHPUnit \Framework \Assert::assertEquals (
81
- $ this ->regularPriceLabel ,
82
- $ productItem ->getPriceLabel (),
83
- 'Wrong product regular price is displayed. '
84
- );
82
+ if (!$ product instanceof BundleProduct) {
83
+ \PHPUnit \Framework \Assert::assertEquals (
84
+ $ this ->regularPriceLabel ,
85
+ $ productItem ->getPriceLabel (),
86
+ 'Wrong product regular price is displayed. '
87
+ );
88
+ }
85
89
86
90
\PHPUnit \Framework \Assert::assertNotEmpty (
87
91
$ wishListProductRegularPrice ,
Original file line number Diff line number Diff line change 108
108
</variation >
109
109
<variation name =" AddProductToWishlistEntityTestVariation14" ticketId =" MAGETWO-90131" >
110
110
<data name =" product" xsi : type =" array" >
111
- <item name =" 0" xsi : type =" string" >bundleProduct::with_special_price_and_custom_options </item >
111
+ <item name =" 0" xsi : type =" string" >bundleProduct::default_with_one_simple_product </item >
112
112
</data >
113
113
<constraint name =" Magento\Wishlist\Test\Constraint\AssertAddProductToWishlistSuccessMessage" />
114
114
<constraint name =" Magento\Wishlist\Test\Constraint\AssertProductIsPresentInWishlist" />
You can’t perform that action at this time.
0 commit comments