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
Catalog
Test
TestCase
Product
ClearAllCompareProductsTest.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Catalog\Test\TestCase\Product
;
8
9
use
Magento\Config\Test\Fixture\ConfigData
;
10
use Magento\Customer\Test\Page\CustomerAccountIndex;
11
27
class
ClearAllCompareProductsTest
extends
AbstractCompareProductsTest
28
{
29
/* tags */
30
const
MVP
=
'yes'
;
31
const
TEST_TYPE
=
'extended_acceptance_test'
;
32
/* end tags */
33
42
public
function
test
(
$products
,
ConfigData
$config
, CustomerAccountIndex $customerAccountIndex)
43
{
44
// Preconditions
45
$config
->persist();
46
$products
= $this->
createProducts
(
$products
);
47
48
//Steps
49
$this->cmsIndex->open();
50
$this->
loginCustomer
();
51
$this->
addProducts
(
$products
);
52
$this->cmsIndex->getLinksBlock()->openLink(
"My Account"
);
53
$customerAccountIndex->getCompareProductsBlock()->clickClearAll();
54
}
55
}
Magento\Catalog\Test\TestCase\Product\ClearAllCompareProductsTest\test
test($products, ConfigData $config, CustomerAccountIndex $customerAccountIndex)
Definition:
ClearAllCompareProductsTest.php:42
Magento\Catalog\Test\TestCase\Product\AbstractCompareProductsTest\loginCustomer
loginCustomer()
Definition:
AbstractCompareProductsTest.php:112
$config
$config
Definition:
fraud_order.php:17
Magento\Catalog\Test\TestCase\Product\AbstractCompareProductsTest
Definition:
AbstractCompareProductsTest.php:24
Magento\Catalog\Test\TestCase\Product
Definition:
AbstractCompareProductsTest.php:7
Magento\Catalog\Test\TestCase\Product\ClearAllCompareProductsTest
Definition:
ClearAllCompareProductsTest.php:27
Magento\Config\Test\Fixture\ConfigData
Definition:
Section.php:7
Magento\Catalog\Test\TestCase\Product\AbstractCompareProductsTest\addProducts
addProducts(array $products, AbstractConstraint $assert=null)
Definition:
AbstractCompareProductsTest.php:145
Magento\Catalog\Test\TestCase\Product\AbstractCompareProductsTest\$products
$products
Definition:
AbstractCompareProductsTest.php:31
Magento\Catalog\Test\TestCase\Product\ClearAllCompareProductsTest\MVP
const MVP
Definition:
ClearAllCompareProductsTest.php:30
Magento\Catalog\Test\TestCase\Product\ClearAllCompareProductsTest\TEST_TYPE
const TEST_TYPE
Definition:
ClearAllCompareProductsTest.php:31
Magento\Catalog\Test\TestCase\Product\AbstractCompareProductsTest\createProducts
createProducts($products)
Definition:
AbstractCompareProductsTest.php:126
Magento\Framework\Config\Data
Definition:
ConfigData.php:7