test(phpunit): Disable Vimeo tests on CI

This commit is contained in:
Pierre Rudloff 2019-04-19 23:26:03 +02:00
parent 9949a0d32b
commit 71200c80bc
2 changed files with 34 additions and 7 deletions

View file

@ -292,6 +292,9 @@ class FrontControllerTest extends TestCase
*/
public function testVideoWithVimeoAudio()
{
if (getenv('CI')) {
$this->markTestSkipped('Travis is blacklisted by Vimeo.');
}
// So we can test the fallback to default format
$this->assertRequestIsOk('video', ['url' => 'https://vimeo.com/251997032', 'audio' => true]);
}
@ -319,6 +322,9 @@ class FrontControllerTest extends TestCase
*/
public function testVideoWithPassword()
{
if (getenv('CI')) {
$this->markTestSkipped('Travis is blacklisted by Vimeo.');
}
$result = $this->controller->video(
$this->request->withQueryParams(['url' => 'http://vimeo.com/68375962'])
->withParsedBody(['password' => 'youtube-dl']),
@ -334,6 +340,9 @@ class FrontControllerTest extends TestCase
*/
public function testVideoWithMissingPassword()
{
if (getenv('CI')) {
$this->markTestSkipped('Travis is blacklisted by Vimeo.');
}
$this->assertRequestIsOk('video', ['url' => 'http://vimeo.com/68375962']);
$this->assertRequestIsOk('video', ['url' => 'http://vimeo.com/68375962', 'audio' => true]);
}
@ -502,6 +511,9 @@ class FrontControllerTest extends TestCase
*/
public function testRedirectWithMissingPassword()
{
if (getenv('CI')) {
$this->markTestSkipped('Travis is blacklisted by Vimeo.');
}
$this->assertRequestIsRedirect('redirect', ['url' => 'http://vimeo.com/68375962']);
}