RemoteTest.php 733 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\View\Test\Unit\Asset;
  7. class RemoteTest extends \PHPUnit\Framework\TestCase
  8. {
  9. /**
  10. * @var \Magento\Framework\View\Asset\Remote
  11. */
  12. protected $_object;
  13. protected function setUp()
  14. {
  15. $this->_object = new \Magento\Framework\View\Asset\Remote('https://127.0.0.1/magento/test/style.css', 'css');
  16. }
  17. public function testGetUrl()
  18. {
  19. $this->assertEquals('https://127.0.0.1/magento/test/style.css', $this->_object->getUrl());
  20. }
  21. public function testGetContentType()
  22. {
  23. $this->assertEquals('css', $this->_object->getContentType());
  24. }
  25. }