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
View
Test
Unit
Design
Theme
ThemePackageTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\View\Test\Unit\Design\Theme
;
7
8
use
Magento\Framework\View\Design\Theme\ThemePackage
;
9
10
class
ThemePackageTest
extends
\PHPUnit\Framework\TestCase
11
{
19
public
function
testConstructBadKey
($key)
20
{
21
new
ThemePackage
($key,
'path'
);
22
}
23
27
public
function
constructBadKeyDataProvider
()
28
{
29
return
[
30
[
''
],
31
[
'one'
],
32
[
'two/parts'
],
33
[
'four/parts/four/parts'
],
34
];
35
}
36
37
public
function
testGetters
()
38
{
39
$key =
'area/Vendor/name'
;
40
$path
=
'path'
;
41
$object =
new
ThemePackage
($key,
$path
);
42
$this->assertSame(
'area'
, $object->getArea());
43
$this->assertSame(
'Vendor'
, $object->getVendor());
44
$this->assertSame(
'name'
, $object->getName());
45
$this->assertSame($key, $object->getKey());
46
$this->assertSame(
$path
, $object->getPath());
47
}
48
}
Magento\Framework\View\Design\Theme\ThemePackage
Definition:
ThemePackage.php:13
Magento\Framework\View\Test\Unit\Design\Theme\ThemePackageTest\constructBadKeyDataProvider
constructBadKeyDataProvider()
Definition:
ThemePackageTest.php:27
Magento\Framework\View\Test\Unit\Design\Theme\ThemePackageTest
Definition:
ThemePackageTest.php:10
Magento\Framework\View\Test\Unit\Design\Theme\ThemePackageTest\testConstructBadKey
testConstructBadKey($key)
Definition:
ThemePackageTest.php:19
Magento\Framework\View\Test\Unit\Design\Theme
Magento\Framework\View\Test\Unit\Design\Theme\ThemePackageTest\testGetters
testGetters()
Definition:
ThemePackageTest.php:37
$path
$path
Definition:
import_with_filesystem_images.php:14