ShippingServiceTest.php in Commerce Shipping 8.2
File
tests/src/Unit/ShippingServiceTest.php
View source
<?php
namespace Drupal\Tests\commerce_shipping\Unit;
use Drupal\commerce_shipping\ShippingService;
use Drupal\Tests\UnitTestCase;
class ShippingServiceTest extends UnitTestCase {
protected $service;
protected function setUp() : void {
parent::setUp();
$this->service = new ShippingService('test', 'Test');
}
public function testGetId() {
$this
->assertEquals('test', $this->service
->getId());
}
public function testGetLabel() {
$this
->assertEquals('Test', $this->service
->getLabel());
}
}