From acbd2b61f12a8711cb9fc8193213bc2b141d4545 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Tue, 1 May 2018 16:43:22 +0200 Subject: [PATCH] test: Add tests for the audio download fallback --- tests/FrontControllerTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/FrontControllerTest.php b/tests/FrontControllerTest.php index 21bf70d..9d4299d 100644 --- a/tests/FrontControllerTest.php +++ b/tests/FrontControllerTest.php @@ -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. *