setAdmin(true); $this->client->request('GET', '/sphinx/configuration/'); $this->assertTrue($this->client->getResponse()->isOk()); } /** * @covers Alchemy\Phrasea\Controller\Admin\Sphinx::getConfiguration * @expectedException \Symfony\Component\HttpKernel\Exception\HttpException */ public function testGetConfigurationUnauthorizedException() { $this->setAdmin(false); $this->client->request('GET', '/sphinx/configuration/'); $this->assertTrue($this->client->getResponse()->isOk()); } /** * @covers Alchemy\Phrasea\Controller\Admin\Sphinx::submitConfiguration */ public function testPostConfiguration() { $this->setAdmin(true); $this->client->request('POST', '/sphinx/configuration/'); $this->assertTrue($this->client->getResponse()->isRedirect()); } }