test: Add tests for the audio download fallback

This commit is contained in:
Pierre Rudloff 2018-05-01 16:43:22 +02:00
parent 2b316d4e8d
commit acbd2b61f1
1 changed files with 11 additions and 0 deletions

View File

@ -285,6 +285,17 @@ class FrontControllerTest extends TestCase
$this->assertRequestIsOk('video', ['url' => 'https://www.youtube.com/watch?v=M7IpKCZ47pU', 'audio' => true]);
}
/**
* Test the video() function with audio conversion from a Vimeo video.
*
* @return void
*/
public function testVideoWithVimeoAudio()
{
// So we can test the fallback to default format
$this->assertRequestIsOk('video', ['url' => 'https://vimeo.com/251997032', 'audio' => true]);
}
/**
* Test the video() function with audio enabled and an URL that doesn't need to be converted.
*