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
framework
App
Test
Unit
DefaultPath
DefaultPathTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\App\Test\Unit\DefaultPath
;
7
8
class
DefaultPathTest
extends
\PHPUnit\Framework\TestCase
9
{
16
public
function
testGetPart
($parts,
$code
,
$result
)
17
{
18
$model
= new \Magento\Framework\App\DefaultPath\DefaultPath($parts);
19
$this->assertEquals(
$result
,
$model
->getPart(
$code
));
20
}
21
25
public
function
dataProviderGetPart
()
26
{
27
return
[
28
[
29
[
'code'
=>
'value'
],
30
'code'
,
31
'value'
,
32
],
33
[
34
[
'code'
=>
'value'
],
35
'other_code'
,
36
null
,
37
],
38
];
39
}
40
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
$model
$model
Definition:
enable_catalog_product_reindex_schedule.php:9
Magento\Framework\App\Test\Unit\DefaultPath\DefaultPathTest\dataProviderGetPart
dataProviderGetPart()
Definition:
DefaultPathTest.php:25
Magento\Framework\App\Test\Unit\DefaultPath\DefaultPathTest\testGetPart
testGetPart($parts, $code, $result)
Definition:
DefaultPathTest.php:16
Magento\Framework\App\Test\Unit\DefaultPath\DefaultPathTest
Definition:
DefaultPathTest.php:8
Magento\Framework\App\Test\Unit\DefaultPath
Definition:
DefaultPathTest.php:6
$code
$code
Definition:
info.phtml:12