You are here

protected function ProductAttributeTranslationTest::setUp in Commerce Core 8.2

Overrides ProductBrowserTestBase::setUp

File

modules/product/tests/src/Functional/ProductAttributeTranslationTest.php, line 47

Class

ProductAttributeTranslationTest
Tests translating product attributes and their values.

Namespace

Drupal\Tests\commerce_product\Functional

Code

protected function setUp() : void {
  parent::setUp();

  // Add the French language.
  $edit = [
    'predefined_langcode' => 'fr',
  ];
  $this
    ->drupalGet('admin/config/regional/language/add');
  $this
    ->submitForm($edit, t('Add language'));
  \Drupal::languageManager()
    ->reset();
}