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
RemoteTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\View\Test\Unit\Asset
;
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
}
Magento\Framework\View\Test\Unit\Asset\RemoteTest
Definition:
RemoteTest.php:8
Magento\Framework\View\Test\Unit\Asset\RemoteTest\testGetContentType
testGetContentType()
Definition:
RemoteTest.php:25
Magento\Framework\View\Test\Unit\Asset
Magento\Framework\View\Test\Unit\Asset\RemoteTest\testGetUrl
testGetUrl()
Definition:
RemoteTest.php:20
Magento\Framework\View\Test\Unit\Asset\RemoteTest\$_object
$_object
Definition:
RemoteTest.php:13
Magento\Framework\View\Test\Unit\Asset\RemoteTest\setUp
setUp()
Definition:
RemoteTest.php:15