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
Reports
Block
Adminhtml
Shopcart
GridTestAbstract.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Reports\Block\Adminhtml\Shopcart
;
7
8
use
Magento\TestFramework\Helper\Bootstrap
;
9
use
Magento\Quote\Model\Quote
;
10
11
abstract
class
GridTestAbstract
extends
\PHPUnit\Framework\TestCase
12
{
16
protected
function
setUp()
17
{
18
parent::setUp();
19
$objectManager
=
Bootstrap::getObjectManager
();
20
22
$customerRepository
=
$objectManager
->create(\
Magento
\
Customer
\Api\CustomerRepositoryInterface::class);
23
$customerData
=
$customerRepository
->getById(1);
24
26
$quoteFixture =
$objectManager
->create(\
Magento
\
Quote
\Model\Quote::class);
27
$quoteFixture->load(
'test01'
,
'reserved_order_id'
);
28
$quoteFixture->setIsActive(
true
);
29
$quoteFixture->setCustomer(
$customerData
);
30
$quoteFixture->save();
31
}
32
}
$customerData
$customerData
Definition:
customer_sample.php:14
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\TestFramework\Helper\Bootstrap
Definition:
Bootstrap.php:12
$customerRepository
$customerRepository
Definition:
quote_with_address.php:20
Magento\Reports\Block\Adminhtml\Shopcart\Customer
Definition:
Customer.php:13
Magento\Reports\Block\Adminhtml\Shopcart\GridTestAbstract
Definition:
GridTestAbstract.php:11
Magento
Magento\Quote\Model\Quote
Definition:
AddressTest.php:6
Magento\Framework\DB\Platform\Quote
Definition:
Quote.php:13
Magento\Reports\Block\Adminhtml\Shopcart
Magento\TestFramework\Helper\Bootstrap\getObjectManager
static getObjectManager()
Definition:
Bootstrap.php:125