test(phpunit): Fix tests that use convert mode
This commit is contained in:
parent
1edd623c7f
commit
5bae668652
1 changed files with 6 additions and 0 deletions
|
@ -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',
|
||||
[
|
||||
|
|
Loading…
Reference in a new issue