Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AddProductToWishlistEntityTest.php
Go to the documentation of this file.
1 <?php
8 
10 
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 }
$customer
Definition: customers.php:11