You are here

public function LanguageTest::setUp in Feeds 8.3

Overrides FeedsKernelTestBase::setUp

File

tests/src/Kernel/Feeds/Target/LanguageTest.php, line 38

Class

LanguageTest
@coversDefaultClass \Drupal\feeds\Feeds\Target\Language @group feeds

Namespace

Drupal\Tests\feeds\Kernel\Feeds\Target

Code

public function setUp() {
  parent::setUp();
  $language = $this->container
    ->get('entity_type.manager')
    ->getStorage('configurable_language')
    ->create([
    'id' => 'es',
  ]);
  $language
    ->save();

  // Create feed type.
  $this->feedType = $this
    ->createFeedTypeForCsv([
    'guid' => 'guid',
    'title' => 'title',
    'langcode' => 'langcode',
  ]);
}