request('GET', '/admin/setup/'); $this->assertTrue(self::$DI['client']->getResponse()->isOk()); } /** * @covers Alchemy\Phrasea\Controller\Admin\Setup::getGlobals * @expectedException \Symfony\Component\HttpKernel\Exception\HttpException */ public function testGetSlashUnauthorizedException() { $this->setAdmin(false); self::$DI['client']->request('GET', '/admin/setup/'); $this->assertTrue(self::$DI['client']->getResponse()->isOk()); } /** * @covers Alchemy\Phrasea\Controller\Admin\Setup::postGlobals */ public function testPostGlobals() { // $this->setAdmin(true); self::$DI['client']->request('POST', '/admin/setup/'); $this->assertTrue(self::$DI['client']->getResponse()->isRedirect()); } }