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
module-quote
Test
Unit
Model
QuoteIdMaskTest.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Quote\Test\Unit\Model
;
8
9
use
Magento\Framework\Math\Random
;
10
14
class
QuoteIdMaskTest
extends
\PHPUnit\Framework\TestCase
15
{
19
protected
$quoteIdMask
;
20
21
protected
function
setUp
()
22
{
23
$helper
= new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
24
$this->quoteIdMask =
$helper
->getObject(
25
\
Magento
\
Quote
\Model\QuoteIdMask::class,
26
[
'randomDataGenerator'
=>
new
Random
()]
27
);
28
}
29
30
public
function
testBeforeSave
()
31
{
32
$this->quoteIdMask->beforeSave();
33
$this->assertNotNull($this->quoteIdMask->getMaskedId(),
'Masked identifier is not generated.'
);
34
}
35
}
$helper
$helper
Definition:
iframe.phtml:13
Magento\Quote\Test\Unit\Model
Definition:
BillingAddressManagementTest.php:8
Magento\Quote\Test\Unit\Model\QuoteIdMaskTest\setUp
setUp()
Definition:
QuoteIdMaskTest.php:21
Magento\Quote\Test\Unit\Model\QuoteIdMaskTest\testBeforeSave
testBeforeSave()
Definition:
QuoteIdMaskTest.php:30
Magento
Magento\Framework\Math\Random
Definition:
Random.php:17
Magento\Framework\DB\Platform\Quote
Definition:
Quote.php:13
Magento\Quote\Test\Unit\Model\QuoteIdMaskTest
Definition:
QuoteIdMaskTest.php:14
Magento\Quote\Test\Unit\Model\QuoteIdMaskTest\$quoteIdMask
$quoteIdMask
Definition:
QuoteIdMaskTest.php:19