You are here

public function SkipNewTest::importFinished in Feeds 8.3

Event callback for the 'feeds.import_finished' event.

Sets the processState property, so that the tests can read this.

Parameters

\Drupal\feeds\Event\ImportFinishedEvent $event: The Feeds event that was dispatched.

File

tests/src/Kernel/SkipNewTest.php, line 47

Class

SkipNewTest
Tests the feature of creating/skipping new items.

Namespace

Drupal\Tests\feeds\Kernel

Code

public function importFinished(ImportFinishedEvent $event) {
  $this->processState = $event
    ->getFeed()
    ->getState(StateInterface::PROCESS);
}