You are here

TestFedExRequest.php in Commerce FedEx 8

File

tests/modules/commerce_fedex_test/src/TestFedExRequest.php
View source
<?php

namespace Drupal\commerce_fedex_test;

use Drupal\commerce_fedex\FedExRequest;

/**
 * Override request service to return a simulated rate request.
 */
class TestFedExRequest extends FedExRequest {

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

}

Classes

Namesort descending Description
TestFedExRequest Override request service to return a simulated rate request.