More test coverage

Run youtube-dl with --restrict-filenames in order to avoid issues when testing against different locales
This commit is contained in:
Pierre Rudloff 2017-05-31 00:48:50 +02:00
parent 419110f764
commit 0a66dce2b8
7 changed files with 190 additions and 29 deletions

View file

@ -485,4 +485,20 @@ class FrontControllerTest extends \PHPUnit_Framework_TestCase
new Config(['stream'=>true])
);
}
/**
* Test the locale() function.
*
* @return void
*/
public function testLocale()
{
$this->assertTrue(
$this->controller->locale(
$this->request,
$this->response,
['locale'=>'fr_FR']
)->isRedirect()
);
}
}