mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-19 07:53:14 +00:00
26 lines
608 B
PHP
26 lines
608 B
PHP
<?php
|
|
|
|
namespace Alchemy\Tests\Phrasea\Security;
|
|
|
|
/**
|
|
* @group functional
|
|
* @group legacy
|
|
* @group authenticated
|
|
* @group web
|
|
*/
|
|
class FirewallTest extends \PhraseanetAuthenticatedWebTestCase
|
|
{
|
|
protected $client;
|
|
|
|
public function testRequiredAuth()
|
|
{
|
|
$this->assertNull(self::$DI['app']['firewall']->requireAuthentication());
|
|
}
|
|
|
|
public function testRequiredAuthNotAuthenticated()
|
|
{
|
|
$this->logout(self::$DI['app']);
|
|
$this->assertInstanceOf('Symfony\Component\HttpFoundation\RedirectResponse', self::$DI['app']['firewall']->requireAuthentication());
|
|
}
|
|
}
|