public function USPSInternationalRateRequestTest::setUp in Commerce USPS 8
Overrides USPSUnitTestBase::setUp
File
- tests/
src/ Unit/ USPSInternationalRateRequestTest.php, line 22
Class
- USPSInternationalRateRequestTest
- Class USPSInternationalRateRequestTest.
Namespace
Drupal\Tests\commerce_usps\UnitCode
public function setUp() {
parent::setUp();
// Add the services to the config.
$this
->setConfig([
'services' => [
1,
2,
9,
],
]);
// Mock all the objects and set the config.
$event_dispatcher = new EventDispatcher();
$this->uspsShipment = new USPSShipmentInternational($event_dispatcher);
$this->rateRequest = new USPSRateRequestInternational($this->uspsShipment, $event_dispatcher);
$this->rateRequest
->setConfig($this
->getConfig());
}