Fix broken url generator test

This commit is contained in:
Timothy Warren 2018-10-10 14:26:44 -04:00
parent 54b4e11335
commit 4eb258bb2f
2 changed files with 3 additions and 3 deletions

View File

@ -88,7 +88,7 @@ class UrlGenerator extends RoutingBase {
}
$path = implode('/', $path_segments);
$scheme = (isset($_SERVER['HTTPS'])) ? 'https:' : 'http';
$scheme = (isset($_SERVER['HTTPS'])) ? 'https:' : 'http:';
return "{$scheme}//{$this->host}/{$path}";
}

View File

@ -28,13 +28,13 @@ class UrlGeneratorTest extends AnimeClientTestCase {
'args' => [
'images'
],
'expected' => '//localhost/assets/images',
'expected' => 'http://localhost/assets/images',
],
'multiple arguments' => [
'args' => [
'images', 'anime', 'foo.png'
],
'expected' => '//localhost/assets/images/anime/foo.png'
'expected' => 'http://localhost/assets/images/anime/foo.png'
]
];
}