Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
functional
tests
app
Magento
Wishlist
Test
TestCase
AddProductToWishlistEntityTest.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Wishlist\Test\TestCase
;
8
9
use
Magento\Customer\Test\Fixture\Customer
;
10
27
class
AddProductToWishlistEntityTest
extends
AbstractWishlistTest
28
{
29
/* tags */
30
const
MVP
=
'no'
;
31
/* end tags */
32
39
public
function
__prepare
(Customer
$customer
)
40
{
41
$customer
->persist();
42
43
return
[
'customer'
=>
$customer
];
44
}
45
54
public
function
test
(Customer
$customer
,
$product
, $configure =
true
)
55
{
56
$product
= $this->
createProducts
(
$product
)[0];
57
58
// Steps:
59
$this->
loginCustomer
($customer);
60
$this->
addToWishlist
([
$product
], $configure);
61
62
return
[
'product'
=>
$product
];
63
}
64
}
Magento\Wishlist\Test\TestCase\AddProductToWishlistEntityTest\test
test(Customer $customer, $product, $configure=true)
Definition:
AddProductToWishlistEntityTest.php:54
$customer
$customer
Definition:
customers.php:11
Magento\Wishlist\Test\TestCase\AddProductToWishlistEntityTest
Definition:
AddProductToWishlistEntityTest.php:27
Magento\Wishlist\Test\TestCase\AbstractWishlistTest\loginCustomer
loginCustomer(Customer $customer)
Definition:
AbstractWishlistTest.php:88
Magento\Wishlist\Test\TestCase\AddProductToWishlistEntityTest\__prepare
__prepare(Customer $customer)
Definition:
AddProductToWishlistEntityTest.php:39
Magento\Wishlist\Test\TestCase\AbstractWishlistTest\createProducts
createProducts($products)
Definition:
AbstractWishlistTest.php:103
$product
$product
Definition:
bundle_product_with_not_visible_children.php:22
Magento\Wishlist\Test\TestCase\AbstractWishlistTest\addToWishlist
addToWishlist(array $products, $configure=false)
Definition:
AbstractWishlistTest.php:120
Magento\Customer\Test\Fixture\Customer
Definition:
Address.php:7
Magento\Wishlist\Test\TestCase\AddProductToWishlistEntityTest\MVP
const MVP
Definition:
AddProductToWishlistEntityTest.php:30
Magento\Wishlist\Test\TestCase\AbstractWishlistTest
Definition:
AbstractWishlistTest.php:21
Magento\Wishlist\Test\TestCase
Definition:
AbstractWishlistTest.php:7