From 5bae66865213d1e796223db9b0725862e56d5c31 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sun, 21 Apr 2019 23:26:11 +0200 Subject: [PATCH] test(phpunit): Fix tests that use convert mode --- tests/FrontControllerTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/FrontControllerTest.php b/tests/FrontControllerTest.php index 30f703b..463722a 100644 --- a/tests/FrontControllerTest.php +++ b/tests/FrontControllerTest.php @@ -237,6 +237,8 @@ class FrontControllerTest extends BaseTest */ public function testVideoWithAudio() { + Config::setOptions(['convert' => true]); + $this->assertRequestIsOk('video', ['url' => 'https://www.youtube.com/watch?v=M7IpKCZ47pU', 'audio' => true]); } @@ -250,6 +252,8 @@ class FrontControllerTest extends BaseTest if (getenv('CI')) { $this->markTestSkipped('Travis is blacklisted by Vimeo.'); } + Config::setOptions(['convert' => true]); + // So we can test the fallback to default format $this->assertRequestIsOk('video', ['url' => 'https://vimeo.com/251997032', 'audio' => true]); } @@ -261,6 +265,8 @@ class FrontControllerTest extends BaseTest */ public function testVideoWithUnconvertedAudio() { + Config::setOptions(['convert' => true]); + $this->assertRequestIsRedirect( 'video', [