Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
RemoteTest.php
Go to the documentation of this file.
1 <?php
7 
8 class RemoteTest extends \PHPUnit\Framework\TestCase
9 {
13  protected $_object;
14 
15  protected function setUp()
16  {
17  $this->_object = new \Magento\Framework\View\Asset\Remote('https://127.0.0.1/magento/test/style.css', 'css');
18  }
19 
20  public function testGetUrl()
21  {
22  $this->assertEquals('https://127.0.0.1/magento/test/style.css', $this->_object->getUrl());
23  }
24 
25  public function testGetContentType()
26  {
27  $this->assertEquals('css', $this->_object->getContentType());
28  }
29 }