You are here

public function TestFedExRequest::getRateService in Commerce FedEx 8

Gets a new RateService.

Parameters

array $configuration: The Plugin Configuration.

array $wsdlOptions: Additional options to send to AbstractSoapClientBase.

bool $resetSoapClient: Whether to get a new soap client.

Return value

\NicholasCreativeMedia\FedExPHP\Services\RateService The rate service.

Overrides FedExRequest::getRateService

File

tests/modules/commerce_fedex_test/src/TestFedExRequest.php, line 15

Class

TestFedExRequest
Override request service to return a simulated rate request.

Namespace

Drupal\commerce_fedex_test

Code

public function getRateService(array $configuration, array $wsdlOptions = [], $resetSoapClient = TRUE) {
  return new TestRateService();
}