You are here

private function TestRateService::authenticationFailed in Commerce FedEx 8

Return a simulated authentication failed response.

Return value

string a simulated authentication failed response.

1 call to TestRateService::authenticationFailed()
TestRateService::getRates in tests/modules/commerce_fedex_test/src/TestRateService.php
Function getRates simulate a fedex rate request.

File

tests/modules/commerce_fedex_test/src/TestRateService.php, line 43

Class

TestRateService
A class to simulate a FedEx Rate Request.

Namespace

Drupal\commerce_fedex_test

Code

private function authenticationFailed() {
  return "O:48:\"NicholasCreativeMedia\\FedExPHP\\Structs\\RateReply\":5:{s:15:\"HighestSeverity\";s:5:\"ERROR\";s:13:\"Notifications\";a:1:{i:0;O:51:\"NicholasCreativeMedia\\FedExPHP\\Structs\\Notification\":6:{s:8:\"Severity\";s:5:\"ERROR\";s:6:\"Source\";s:4:\"prof\";s:4:\"Code\";s:4:\"1000\";s:7:\"Message\";s:21:\"Authentication Failed\";s:16:\"LocalizedMessage\";N;s:17:\"MessageParameters\";N;}}s:7:\"Version\";O:48:\"NicholasCreativeMedia\\FedExPHP\\Structs\\VersionId\":4:{s:9:\"ServiceId\";s:3:\"crs\";s:5:\"Major\";i:20;s:12:\"Intermediate\";i:0;s:5:\"Minor\";i:0;}s:17:\"TransactionDetail\";N;s:16:\"RateReplyDetails\";N;}";
}