class TestFedExRequest in Commerce FedEx 8
Override request service to return a simulated rate request.
Hierarchy
- class \Drupal\commerce_fedex\FedExRequest implements FedExRequestInterface
- class \Drupal\commerce_fedex_test\TestFedExRequest
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_testView source
class TestFedExRequest extends FedExRequest {
/**
* {@inheritdoc}
*/
public function getRateService(array $configuration, array $wsdlOptions = [], $resetSoapClient = TRUE) {
return new TestRateService();
}
}