protected function UpdateNonExistentTest::setUp in Feeds 8.3
Same name in this branch
- 8.3 tests/src/Functional/UpdateNonExistentTest.php \Drupal\Tests\feeds\Functional\UpdateNonExistentTest::setUp()
- 8.3 tests/src/Kernel/UpdateNonExistentTest.php \Drupal\Tests\feeds\Kernel\UpdateNonExistentTest::setUp()
Overrides FeedsBrowserTestBase::setUp
File
- tests/
src/ Functional/ UpdateNonExistentTest.php, line 27
Class
- UpdateNonExistentTest
- Tests the feature of updating items that are no longer available in the feed.
Namespace
Drupal\Tests\feeds\FunctionalCode
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',
],
],
]);
}