protected function SkipNewTest::setUp in Feeds 8.3
Overrides FeedsKernelTestBase::setUp
File
- tests/
src/ Kernel/ SkipNewTest.php, line 28
Class
- SkipNewTest
- Tests the feature of creating/skipping new items.
Namespace
Drupal\Tests\feeds\KernelCode
protected function setUp() {
parent::setUp();
// Setup an event dispatcher. We use this to check the number of created and
// updated items after an import.
$this->container
->get('event_dispatcher')
->addListener(FeedsEvents::IMPORT_FINISHED, [
$this,
'importFinished',
]);
// Add body field.
$this
->setUpBodyField();
}