commerce_shipping-8.x-2.0-rc2/tests/src/Unit/ShippingServiceTest.php
tests/src/Unit/ShippingServiceTest.php
<?php namespace Drupal\Tests\commerce_shipping\Unit; use Drupal\Tests\UnitTestCase; use Drupal\commerce_shipping\ShippingService; /** * @coversDefaultClass \Drupal\commerce_shipping\ShippingService * @group commerce_shipping */ class ShippingServiceTest extends UnitTestCase { /** * The shipping service. * * @var \Drupal\commerce_shipping\ShippingService */ protected $service; /** * {@inheritdoc} */ protected function setUp(): void { parent::setUp(); $this->service = new ShippingService('test', 'Test'); } /** * @covers ::getId */ public function testGetId() { $this->assertEquals('test', $this->service->getId()); } /** * @covers ::getLabel */ public function testGetLabel() { $this->assertEquals('Test', $this->service->getLabel()); } }