public function beginAuthentication_twoFactorPossible_returnTrue() { $user = $this->getUser(true); $context = $this->getAuthenticationContext($user); $returnValue = $this->provider->beginAuthentication($context); $this->assertTrue($returnValue); }