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
integration
testsuite
Magento
Wishlist
Controller
SharedTest.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Wishlist\Controller
;
8
9
class
SharedTest
extends
\Magento\TestFramework\TestCase\AbstractController
10
{
15
public
function
testAllcartAction()
16
{
17
$this->
getRequest
()->setParam(
'code'
,
'fixture_unique_code'
);
18
$this->dispatch(
'wishlist/shared/allcart'
);
19
21
$cart
= $this->_objectManager->get(\
Magento
\Checkout\Model\Cart::class);
22
$quoteCount =
$cart
->getQuote()->getItemsCollection()->count();
23
24
$this->assertEquals(1, $quoteCount);
25
}
26
}
Magento\TestFramework\TestCase\AbstractController\getRequest
getRequest()
Definition:
AbstractController.php:124
Magento\Wishlist\Controller\SharedTest
Definition:
SharedTest.php:9
Magento\Wishlist\Controller
Definition:
IndexTest.php:6
Magento\TestFramework\TestCase\AbstractController
Definition:
AbstractController.php:24
Magento
$cart
$cart
Definition:
quote_with_bundle_and_options.php:47