Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
PropertyGroupTest.php
Go to the documentation of this file.
1 <?php
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 }