/** * @return AccountNotLinkedException */ protected function createAccountNotLinkedException() { $accountNotLinked = new AccountNotLinkedException(); $accountNotLinked->setResourceOwnerName('facebook'); $token = new CustomOAuthToken(); $accountNotLinked->setToken($token); return $accountNotLinked; }