You are here

protected function SourcePluginsTest::setUp in Feeds 8.3

Overrides FeedsKernelTestBase::setUp

File

tests/src/Kernel/SourcePluginsTest.php, line 37

Class

SourcePluginsTest
Tests the behavior of Feeds source plugins.

Namespace

Drupal\Tests\feeds\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->setUpBodyField();

  // Set a site name and slogan.
  $config = \Drupal::service('config.factory')
    ->getEditable('system.site');
  $config
    ->set('name', 'Feeds test site');
  $config
    ->set('slogan', 'It feeds!');
  $config
    ->save();

  // Add two text fields.
  $this
    ->createFieldWithStorage('field_name');
  $this
    ->createFieldWithStorage('field_slogan');
}