mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
31 lines
873 B
PHP
31 lines
873 B
PHP
<?php
|
|
|
|
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAbstract.class.inc';
|
|
|
|
class ControllerLanguageTest extends PhraseanetWebTestCaseAbstract
|
|
{
|
|
protected $client;
|
|
|
|
public function setUp()
|
|
{
|
|
parent::setUp();
|
|
$this->client = $this->createClient();
|
|
}
|
|
|
|
public function createApplication()
|
|
{
|
|
return require __DIR__ . '/../../../../../lib/Alchemy/Phrasea/Application/Prod.php';
|
|
}
|
|
|
|
public function testRootPost()
|
|
{
|
|
$route = '/language/';
|
|
|
|
$this->client->request("GET", $route);
|
|
$this->assertTrue($this->client->getResponse()->isOk());
|
|
$this->assertEquals("application/json", $this->client->getResponse()->headers->get("content-type"));
|
|
$pageContent = json_decode($this->client->getResponse()->getContent());
|
|
$this->assertTrue(is_object($pageContent));
|
|
}
|
|
}
|