9 use Magento\Catalog\Test\Page\Product\CatalogProductView;
10 use Magento\Cms\Test\Page\CmsIndex;
12 use Magento\Wishlist\Test\Page\WishlistIndex;
13 use Magento\Mtf\Fixture\FixtureFactory;
14 use Magento\Mtf\ObjectManager;
15 use Magento\Mtf\TestCase\Injectable;
90 $loginCustomerOnFrontendStep = $this->objectManager->create(
91 \
Magento\Customer\Test\TestStep\LoginCustomerOnFrontendStep::class,
94 $loginCustomerOnFrontendStep->run();
105 $createProductsStep = $this->objectManager->create(
106 \
Magento\Catalog\Test\TestStep\CreateProductsStep::class,
110 return $createProductsStep->run()[
'products'];
122 $this->objectManager->create(
123 \
Magento\Wishlist\Test\TestStep\AddProductsToWishlistStep::class,
124 [
'products' =>
$products,
'configure' => $configure]
__inject(CmsIndex $cmsIndex, CatalogProductView $catalogProductView, FixtureFactory $fixtureFactory, WishlistIndex $wishlistIndex, ObjectManager $objectManager)
loginCustomer(Customer $customer)
createProducts($products)
addToWishlist(array $products, $configure=false)