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
Component
Test
Unit
ComponentFileTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Component\Test\Unit
;
7
8
use
Magento\Framework\Component\ComponentFile
;
9
10
class
ComponentFileTest
extends
\PHPUnit\Framework\TestCase
11
{
12
public
function
testGetters
()
13
{
14
$type
=
'type'
;
15
$name
=
'name'
;
16
$path
=
'path'
;
17
$component =
new
ComponentFile
(
$type
,
$name
,
$path
);
18
$this->assertSame(
$type
, $component->getComponentType());
19
$this->assertSame(
$name
, $component->getComponentName());
20
$this->assertSame(
$path
, $component->getFullPath());
21
}
22
}
$type
$type
Definition:
item.phtml:13
Magento\Framework\Component\ComponentFile
Definition:
ComponentFile.php:11
Magento\Framework\Component\Test\Unit\ComponentFileTest\testGetters
testGetters()
Definition:
ComponentFileTest.php:12
Magento\Framework\Component\Test\Unit\ComponentFileTest
Definition:
ComponentFileTest.php:10
Magento\Framework\Component\Test\Unit
Definition:
ComponentFileTest.php:6
$path
$path
Definition:
import_with_filesystem_images.php:14
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14