test: Add tests for the audio download fallback
This commit is contained in:
parent
2b316d4e8d
commit
acbd2b61f1
1 changed files with 11 additions and 0 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue