Fix: Hard-coded URL in ControllerTest::testThemeUrl (#4378)

This commit is contained in:
Panagiotis Koursaris 2019-06-11 11:15:01 +03:00 committed by Denis Denisov
parent faf3069656
commit 8811c3dcd4
1 changed files with 2 additions and 2 deletions

View File

@ -27,10 +27,10 @@ class ControllerTest extends TestCase
$controller = new Controller($theme);
$url = $controller->themeUrl();
$this->assertEquals('http://localhost/themes/test', $url);
$this->assertEquals(url('/themes/test'), $url);
$url = $controller->themeUrl('foo/bar.css');
$this->assertEquals('http://localhost/themes/test/foo/bar.css', $url);
$this->assertEquals(url('/themes/test/foo/bar.css'), $url);
//
// These tests seem to bear different results