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
Signifyd
_files
multiple_cases.php
Go to the documentation of this file.
1
<?php
6
use
Magento\Signifyd\Api\Data\CaseInterface
;
7
8
require
__DIR__
.
'/case.php'
;
9
10
for
(
$i
= 1;
$i
< 4;
$i
++) {
11
$newOrder = clone
$order
;
12
$newOrder->setEntityId(
null
)
13
->setIncrementId(
$order
->getIncrementId() +
$i
);
14
15
$orderRepository
->save($newOrder);
16
17
$newCase = clone
$case
;
18
$newCase->setEntityId(
null
)
19
->setCaseId(
$i
)
20
->setOrderId($newOrder->getEntityId())
21
->setStatus(CaseInterface::STATUS_OPEN)
22
->setCreatedAt(
'2016-12-0'
.
$i
.
'T15:'
.
$i
.
':17+0000'
)
23
->setUpdatedAt(
'2016-12-12T0'
.
$i
.
':23:16+0000'
)
24
->setId(
null
);
25
26
$caseRepository
->save($newCase);
27
}
__DIR__
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition:
_bootstrap.php:60
$orderRepository
$orderRepository
Definition:
order.php:69
$case
$case
Definition:
approved_case.php:24
$order
$order
Definition:
order.php:55
$caseRepository
$caseRepository
Definition:
approved_case.php:37
Magento\Signifyd\Api\Data\CaseInterface
Definition:
CaseInterface.php:17
$i
$i
Definition:
gallery.phtml:31