You are here

class TestFedExRequest in Commerce FedEx 8

Override request service to return a simulated rate request.

Hierarchy

Expanded class hierarchy of TestFedExRequest

1 string reference to 'TestFedExRequest'
commerce_fedex_test.services.yml in tests/modules/commerce_fedex_test/commerce_fedex_test.services.yml
tests/modules/commerce_fedex_test/commerce_fedex_test.services.yml
1 service uses TestFedExRequest
commerce_fedex.fedex_request in tests/modules/commerce_fedex_test/commerce_fedex_test.services.yml
Drupal\commerce_fedex_test\TestFedExRequest

File

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

Namespace

Drupal\commerce_fedex_test
View source
class TestFedExRequest extends FedExRequest {

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

}

Members

Namesort descending Modifiers Type Description Overrides
FedExRequest::getClientDetail public function
FedExRequest::getMode protected function Gets the mode to use to connect.
FedExRequest::getRateRequest public function Gets a new rate request. Overrides FedExRequestInterface::getRateRequest
FedExRequest::getShipRequest public function Gets a new ShipRequest. Overrides FedExRequestInterface::getShipRequest
FedExRequest::getShipService public function Gets a new ShipService. Overrides FedExRequestInterface::getShipService
FedExRequest::getTrackRequest public function Gets a new TrackRequest. Overrides FedExRequestInterface::getTrackRequest
FedExRequest::getTrackService public function Gets a new TrackService. Overrides FedExRequestInterface::getTrackService
FedExRequest::getVersion public function Return the current WSDL version of a service. Overrides FedExRequestInterface::getVersion
FedExRequest::getWebAuthenticationDetail public function
FedExRequest::__call public function
TestFedExRequest::getRateService public function Gets a new RateService. Overrides FedExRequest::getRateService