Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
addAddProductDataProvider () | |
testMessageAtAddToCartWithRedirect () | |
testMessageAtAddToCartWithoutRedirect () | |
testReorderItems (bool $loggedIn, string $request) | |
reorderItemsDataProvider () | |
![]() | |
getRequest () | |
getResponse () | |
assert404NotFound () | |
assertHeaderPcre ($headerName, $valueRegex) | |
assertRedirect (\PHPUnit\Framework\Constraint\Constraint $urlConstraint=null) | |
Protected Member Functions | |
setUp () | |
tearDown () | |
![]() | |
_getBootstrap () | |
setUp () | |
tearDown () | |
assertPostConditions () | |
getMessages ( $messageType=null, $messageManagerClass=\Magento\Framework\Message\Manager::class) | |
Additional Inherited Members | |
![]() | |
$_runCode = '' | |
$_runScope = 'store' | |
$_runOptions = [] | |
$_request | |
$_response | |
$_objectManager | |
$_assertSessionErrors = false | |
@SuppressWarnings(PHPMD.CouplingBetweenObjects) @magentoDbIsolation enabled
Definition at line 31 of file CartTest.php.
addAddProductDataProvider | ( | ) |
Data provider for testAddToCartSimpleProduct
Definition at line 347 of file CartTest.php.
reorderItemsDataProvider | ( | ) |
|
protected |
Definition at line 39 of file CartTest.php.
|
protected |
Definition at line 49 of file CartTest.php.
testMessageAtAddToCartWithoutRedirect | ( | ) |
Test for \Magento\Checkout\Controller\Cart\Add::execute() with simple product and deactivated redirect to cart
@magentoDataFixture Magento/Catalog/_files/products.php @magentoConfigFixture current_store checkout/cart/redirect_to_cart 0 @magentoAppIsolation enabled
Definition at line 398 of file CartTest.php.
testMessageAtAddToCartWithRedirect | ( | ) |
Test for \Magento\Checkout\Controller\Cart\Add::execute() with simple product and activated redirect to cart
@magentoDataFixture Magento/Catalog/_files/products.php @magentoConfigFixture current_store checkout/cart/redirect_to_cart 1 @magentoAppIsolation enabled
Definition at line 362 of file CartTest.php.
testReorderItems | ( | bool | $loggedIn, |
string | $request | ||
) |
@covers \Magento\Checkout\Controller\Cart\Addgroup::execute()
Test customer can add items to cart only if they belong to him.
bool | $loggedIn | |
string | $request | @magentoAppArea frontend @magentoDataFixture Magento/Checkout/_files/order_items.php @dataProvider reorderItemsDataProvider |
Definition at line 438 of file CartTest.php.