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
Shipping
Test
TestCase
CreateShipmentEntityTest.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Shipping\Test\TestCase
;
8
9
use
Magento\Sales\Test\Fixture\OrderInjectable
;
10
use Magento\Mtf\TestCase\Injectable;
11
29
class
CreateShipmentEntityTest
extends
Injectable
30
{
31
/* tags */
32
const
MVP
=
'yes'
;
33
const
TEST_TYPE
=
'extended_acceptance_test'
;
34
/* end tags */
35
41
public
function
__prepare
()
42
{
43
$this->objectManager->create(
44
\
Magento
\Config\Test\TestStep\SetupConfigurationStep::class,
45
[
'configData'
=>
"checkmo,flatrate"
]
46
)->run();
47
}
48
56
public
function
test
(OrderInjectable
$order
, array
$data
)
57
{
58
// Preconditions
59
$order
->persist();
60
61
// Steps
62
$createShipping = $this->objectManager->create(
63
\
Magento
\Sales\Test\TestStep\CreateShipmentStep::class,
64
[
'order'
=>
$order
,
'data'
=>
$data
]
65
);
66
67
return
[
'ids'
=> $createShipping->run()];
68
}
69
}
Magento\Shipping\Test\TestCase\CreateShipmentEntityTest
Definition:
CreateShipmentEntityTest.php:29
Magento\Shipping\Test\TestCase\CreateShipmentEntityTest\__prepare
__prepare()
Definition:
CreateShipmentEntityTest.php:41
$order
$order
Definition:
order.php:55
Magento\Shipping\Test\TestCase\CreateShipmentEntityTest\test
test(OrderInjectable $order, array $data)
Definition:
CreateShipmentEntityTest.php:56
Magento\Shipping\Test\TestCase
Definition:
CityBasedShippingRateTest.php:7
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento
Magento\Shipping\Test\TestCase\CreateShipmentEntityTest\TEST_TYPE
const TEST_TYPE
Definition:
CreateShipmentEntityTest.php:33
Magento\Sales\Test\Fixture\OrderInjectable
Definition:
BillingAddressId.php:7
Magento\Shipping\Test\TestCase\CreateShipmentEntityTest\MVP
const MVP
Definition:
CreateShipmentEntityTest.php:32