
| Current Path : /var/www/html/store/web/modules/contrib/commerce_shipping/tests/src/Unit/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/store/web/modules/contrib/commerce_shipping/tests/src/Unit/ShippingServiceTest.php |
<?php
namespace Drupal\Tests\commerce_shipping\Unit;
use Drupal\commerce_shipping\ShippingService;
use Drupal\Tests\UnitTestCase;
/**
* @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());
}
}