You are here

protected function ShippingMethodFormatterTest::setUp in Commerce Shipping 8.2

Overrides ShippingKernelTestBase::setUp

File

tests/src/Kernel/Formatter/ShippingMethodFormatterTest.php, line 38

Class

ShippingMethodFormatterTest
Tests the shipping method formatter.

Namespace

Drupal\Tests\commerce_shipping\Kernel\Formatter

Code

protected function setUp() : void {
  parent::setUp();
  $this->translationLanguage = ConfigurableLanguage::createFromLangcode('fr');
  $this->translationLanguage
    ->save();
  $this->container
    ->get('content_translation.manager')
    ->setEnabled('commerce_shipping_method', 'commerce_shipping_method', TRUE);
}