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
Asset
PropertyGroupTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\View\Test\Unit\Asset
;
7
8
class
PropertyGroupTest
extends
\PHPUnit\Framework\TestCase
9
{
13
protected
$_object
;
14
15
protected
function
setUp
()
16
{
17
$this->_object = new \Magento\Framework\View\Asset\PropertyGroup([
'test_property'
=>
'test_value'
]);
18
}
19
20
public
function
testGetProperties
()
21
{
22
$this->assertEquals([
'test_property'
=>
'test_value'
], $this->_object->getProperties());
23
}
24
25
public
function
testGetProperty
()
26
{
27
$this->assertEquals(
'test_value'
, $this->_object->getProperty(
'test_property'
));
28
$this->assertNull($this->_object->getProperty(
'non_existing_property'
));
29
}
30
}
Magento\Framework\View\Test\Unit\Asset
Magento\Framework\View\Test\Unit\Asset\PropertyGroupTest
Definition:
PropertyGroupTest.php:8
Magento\Framework\View\Test\Unit\Asset\PropertyGroupTest\$_object
$_object
Definition:
PropertyGroupTest.php:13
Magento\Framework\View\Test\Unit\Asset\PropertyGroupTest\testGetProperty
testGetProperty()
Definition:
PropertyGroupTest.php:25
Magento\Framework\View\Test\Unit\Asset\PropertyGroupTest\setUp
setUp()
Definition:
PropertyGroupTest.php:15
Magento\Framework\View\Test\Unit\Asset\PropertyGroupTest\testGetProperties
testGetProperties()
Definition:
PropertyGroupTest.php:20