mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 21:43:18 +00:00
20 lines
614 B
PHP
20 lines
614 B
PHP
<?php
|
|
|
|
namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
|
|
|
class ControllerLanguageTest extends \PhraseanetWebTestCaseAbstract
|
|
{
|
|
protected $client;
|
|
|
|
public function testRootPost()
|
|
{
|
|
$route = '/prod/language/';
|
|
|
|
self::$DI['client']->request("GET", $route);
|
|
$this->assertTrue(self::$DI['client']->getResponse()->isOk());
|
|
$this->assertEquals("application/json", self::$DI['client']->getResponse()->headers->get("content-type"));
|
|
$pageContent = json_decode(self::$DI['client']->getResponse()->getContent());
|
|
$this->assertTrue(is_object($pageContent));
|
|
}
|
|
}
|