You are here

public function USPSRateRequestTest::testCleanServiceName in Commerce USPS 8

Test cleaning service names.

@covers ::cleanServiceName

File

tests/src/Unit/USPSRateRequestTest.php, line 147

Class

USPSRateRequestTest
Class USPSRateRequestTest.

Namespace

Drupal\Tests\commerce_usps\Unit

Code

public function testCleanServiceName() {
  $service = 'Priority Mail Express 2-Day<sup>™</sup>';
  $cleaned = $this->rateRequest
    ->cleanServiceName($service);
  $this
    ->assertEquals('Priority Mail Express 2-Day', $cleaned);
}