/** * @covers Alchemy\Phrasea\Authentication\Authenticator::closeAccount */ public function testCloseAccount() { $app = self::$DI['app']; $user = self::$DI['user']; $authenticator = new Authenticator($app, $app['browser'], $app['session'], $app['EM']); $authenticator->openAccount($user); $this->assertNotNull($authenticator->getUser()); $authenticator->closeAccount(); $this->assertNull($authenticator->getUser()); }