Fix phras-47 Force authentication to see push content

This commit is contained in:
Nicolas Le Goff
2014-05-05 17:52:53 +02:00
parent c56fc230ab
commit 45ec715eea
7 changed files with 54 additions and 17 deletions

View File

@@ -8,12 +8,12 @@ class FirewallTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
public function testRequiredAuth()
{
$this->assertNull(self::$DI['app']['firewall']->requireAuthentication(self::$DI['app']));
$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(self::$DI['app']));
$this->assertInstanceOf('Symfony\Component\HttpFoundation\RedirectResponse', self::$DI['app']['firewall']->requireAuthentication());
}
}