diff --git a/tests/DownloadControllerTest.php b/tests/DownloadControllerTest.php index 610ce12..b43d709 100644 --- a/tests/DownloadControllerTest.php +++ b/tests/DownloadControllerTest.php @@ -153,7 +153,7 @@ class DownloadControllerTest extends ControllerTest */ public function testDownloadWithMissingPassword() { - $this->assertRequestIsClientError('download', ['url' => 'http://vimeo.com/68375962']); + $this->assertRequestIsClientError('download', ['url' => 'https://vimeo.com/68375962']); } /** @@ -164,7 +164,7 @@ class DownloadControllerTest extends ControllerTest public function testDownloadWithError() { $this->expectException(YoutubedlException::class); - $this->getRequestResult('download', ['url' => 'http://example.com/foo']); + $this->getRequestResult('download', ['url' => 'https://example.com/foo']); } /** diff --git a/tests/FrontControllerTest.php b/tests/FrontControllerTest.php index 4b77ab6..e68508b 100644 --- a/tests/FrontControllerTest.php +++ b/tests/FrontControllerTest.php @@ -191,7 +191,7 @@ class FrontControllerTest extends ControllerTest public function testInfoWithPassword() { $result = $this->controller->info( - $this->container->get('request')->withQueryParams(['url' => 'http://vimeo.com/68375962']) + $this->container->get('request')->withQueryParams(['url' => 'https://vimeo.com/68375962']) ->withParsedBody(['password' => 'youtube-dl']), $this->container->get('response') ); @@ -206,8 +206,8 @@ class FrontControllerTest extends ControllerTest */ public function testInfoWithMissingPassword() { - $this->assertRequestIsClientError('info', ['url' => 'http://vimeo.com/68375962']); - $this->assertRequestIsClientError('info', ['url' => 'http://vimeo.com/68375962', 'audio' => true]); + $this->assertRequestIsClientError('info', ['url' => 'https://vimeo.com/68375962']); + $this->assertRequestIsClientError('info', ['url' => 'https://vimeo.com/68375962', 'audio' => true]); } /** diff --git a/tests/JsonControllerTest.php b/tests/JsonControllerTest.php index be46ec1..c82b764 100644 --- a/tests/JsonControllerTest.php +++ b/tests/JsonControllerTest.php @@ -49,7 +49,7 @@ class JsonControllerTest extends ControllerTest public function testJsonWithError() { $this->expectException(YoutubedlException::class); - $this->getRequestResult('json', ['url' => 'http://example.com/foo']); + $this->getRequestResult('json', ['url' => 'https://example.com/foo']); } /** diff --git a/tests/VideoTest.php b/tests/VideoTest.php index 47cd032..31ca1b9 100644 --- a/tests/VideoTest.php +++ b/tests/VideoTest.php @@ -104,7 +104,7 @@ class VideoTest extends ContainerTest */ public function testgetUrlWithPassword() { - $video = new Video($this->downloader, 'http://vimeo.com/68375962', 'best', 'youtube-dl'); + $video = new Video($this->downloader, 'https://vimeo.com/68375962', 'best', 'youtube-dl'); foreach ($video->getUrl() as $videoURL) { $this->assertStringContainsString('vimeocdn.com', $videoURL); } @@ -119,7 +119,7 @@ class VideoTest extends ContainerTest public function testgetUrlWithMissingPassword() { $this->expectException(PasswordException::class); - $video = new Video($this->downloader, 'http://vimeo.com/68375962', $this->format); + $video = new Video($this->downloader, 'https://vimeo.com/68375962', $this->format); $video->getUrl(); } @@ -132,7 +132,7 @@ class VideoTest extends ContainerTest public function testgetUrlWithWrongPassword() { $this->expectException(WrongPasswordException::class); - $video = new Video($this->downloader, 'http://vimeo.com/68375962', 'best', 'foo'); + $video = new Video($this->downloader, 'https://vimeo.com/68375962', 'best', 'foo'); $video->getUrl(); } @@ -174,7 +174,7 @@ class VideoTest extends ContainerTest 'googlevideo.com', ], [ - 'http://www.bbc.co.uk/programmes/b039g8p7', 'bestaudio/best', + 'https://www.bbc.co.uk/programmes/b039g8p7', 'bestaudio/best', 'Kaleidoscope_Leonard_Cohen-b039d07m', 'flv', 'bbcodspdns.fcod.llnwd.net', @@ -247,7 +247,7 @@ class VideoTest extends ContainerTest public function errorUrlProvider(): array { return [ - ['http://example.com/video'], + ['https://example.com/video'], ]; }