mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 21:13:26 +00:00
22 lines
750 B
PHP
22 lines
750 B
PHP
<?php
|
|
|
|
use Alchemy\Phrasea\Core\Configuration;
|
|
|
|
require_once __DIR__ . '/../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
|
|
|
class FirewallTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|
{
|
|
protected $client;
|
|
|
|
public function testRequiredAuth()
|
|
{
|
|
$this->markTestSkipped('Introduce seg fault, to investigate');
|
|
$response = self::$DI['app']['firewall']->requireAuthentication(self::$DI['app']);
|
|
$this->assertNull($response);
|
|
self::$DI['app']->closeAccount();
|
|
$response = self::$DI['app']['firewall']->requireAuthentication(self::$DI['app']);
|
|
$this->assertTrue($response->isRedirect());
|
|
$this->assertEquals('/login/', $response->headers->get('location'));
|
|
}
|
|
}
|