You are here

protected function UpdateNonExistentTest::setUp in Feeds 8.3

Same name in this branch
  1. 8.3 tests/src/Functional/UpdateNonExistentTest.php \Drupal\Tests\feeds\Functional\UpdateNonExistentTest::setUp()
  2. 8.3 tests/src/Kernel/UpdateNonExistentTest.php \Drupal\Tests\feeds\Kernel\UpdateNonExistentTest::setUp()

Overrides FeedsKernelTestBase::setUp

File

tests/src/Kernel/UpdateNonExistentTest.php, line 29

Class

UpdateNonExistentTest
Tests the feature of updating items that are no longer available in the feed.

Namespace

Drupal\Tests\feeds\Kernel

Code

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

  // Create a feed type.
  $this->feedType = $this
    ->createFeedType([
    'fetcher' => 'directory',
    'fetcher_configuration' => [
      'allowed_extensions' => 'atom rss rss1 rss2 opml xml',
    ],
    'processor_configuration' => [
      'authorize' => FALSE,
      'update_existing' => ProcessorInterface::UPDATE_EXISTING,
      'values' => [
        'type' => 'article',
      ],
    ],
  ]);
}