Add getApplication() method PhraseanetTestCase.

This commit is contained in:
Benoît Burnichon
2015-07-01 16:32:24 +02:00
parent a9160d62f6
commit 4cdca486d8
38 changed files with 72 additions and 75 deletions

View File

@@ -202,7 +202,7 @@ class AuthenticatorTest extends \PhraseanetTestCase
*/
public function testCloseAccount()
{
$app = self::$DI['app'];
$app = $this->getApplication();
$user = self::$DI['user'];
$authenticator = new Authenticator($app, $app['browser'], $app['session'], $app['orm.em']);
@@ -214,7 +214,7 @@ class AuthenticatorTest extends \PhraseanetTestCase
public function testCloseAccountWhenNoSessionThrowsAnException()
{
$app = self::$DI['app'];
$app = $this->getApplication();
$authenticator = new Authenticator($app, $app['browser'], $app['session'], $app['orm.em']);
$this->setExpectedException('Alchemy\Phrasea\Exception\RuntimeException', 'No session to close.');