mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
20 lines
596 B
PHP
20 lines
596 B
PHP
<?php
|
|
|
|
namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
|
|
|
class LanguageTest extends \PhraseanetWebTestCase
|
|
{
|
|
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));
|
|
}
|
|
}
|