You are here

protected function FeedsKernelTestBase::setUpBodyField in Feeds 8.3

Installs body field (not needed for every kernel test).

5 calls to FeedsKernelTestBase::setUpBodyField()
CsvParserTest::setUp in tests/src/Kernel/Feeds/Parser/CsvParserTest.php
FeedsItemTest::setUp in tests/src/Kernel/FeedsItemTest.php
FieldTest::setUp in tests/src/Kernel/Feeds/Target/FieldTest.php
SkipNewTest::setUp in tests/src/Kernel/SkipNewTest.php
SourcePluginsTest::setUp in tests/src/Kernel/SourcePluginsTest.php

File

tests/src/Kernel/FeedsKernelTestBase.php, line 74

Class

FeedsKernelTestBase
Provides a base class for Feeds kernel tests.

Namespace

Drupal\Tests\feeds\Kernel

Code

protected function setUpBodyField() {
  $this
    ->installConfig([
    'field',
    'filter',
    'node',
  ]);
  node_add_body_field($this->nodeType);
}