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-ups
Test
Unit
Helper
ConfigTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Ups\Test\Unit\Helper
;
7
11
class
ConfigTest
extends
\PHPUnit\Framework\TestCase
12
{
18
protected
$helper
;
19
20
protected
function
setUp
()
21
{
22
$objectManagerHelper = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
23
$this->helper = $objectManagerHelper->getObject(\
Magento
\Ups\Helper\Config::class);
24
}
25
32
public
function
testGetData
(
$result
,
$type
=
null
,
$code
=
null
)
33
{
34
$this->assertEquals(
$result
, $this->helper->getCode(
$type
,
$code
));
35
}
36
42
public
function
getCodeDataProvider
()
43
{
44
return
[
45
[
false
],
46
[
false
,
'not-exist-type'
],
47
[
false
,
'not-exist-type'
,
'not-exist-code'
],
48
[
false
,
'action'
],
49
[[
'single'
=>
'3'
,
'all'
=>
'4'
],
'action'
,
''
],
50
[
'3'
,
'action'
,
'single'
]
51
];
52
}
53
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\Ups\Test\Unit\Helper\ConfigTest\getCodeDataProvider
getCodeDataProvider()
Definition:
ConfigTest.php:42
Magento\Ups\Test\Unit\Helper\ConfigTest\setUp
setUp()
Definition:
ConfigTest.php:20
Magento\Ups\Test\Unit\Helper\ConfigTest\testGetData
testGetData($result, $type=null, $code=null)
Definition:
ConfigTest.php:32
Magento\Ups\Test\Unit\Helper
Definition:
ConfigTest.php:6
$type
$type
Definition:
item.phtml:13
Magento\Ups\Test\Unit\Helper\ConfigTest\$helper
$helper
Definition:
ConfigTest.php:18
Magento
Magento\Ups\Test\Unit\Helper\ConfigTest
Definition:
ConfigTest.php:11
$code
$code
Definition:
info.phtml:12