Use ['locales.I18n.available'] to generate field label

This commit is contained in:
Nicolas Le Goff
2013-05-31 16:02:20 +02:00
parent 3dcb45d974
commit 16d79abd43
6 changed files with 43 additions and 20 deletions

View File

@@ -40,6 +40,14 @@ class RootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
$this->assertRegExp('/^\/login\/\?redirect=[\/a-zA-Z]+/', $response->headers->get('location'));
}
public function testRouteAvailableLanguages()
{
$crawler = self::$DI['client']->request('GET', '/available-languages');
$response = self::$DI['client']->getResponse();
$this->assertEquals(200, $response->getStatusCode());
$this->assertEquals((array) json_decode($response->getContent()), self::$DI['app']['locales.I18n.available']);
}
public function testRouteRobots()
{
$original_value = self::$DI['app']['phraseanet.registry']->get('GV_allow_search_engine');