You are here

public function ProcessEventTest::testGetItem in Feeds 8.3

@covers ::getItem

File

tests/src/Unit/Event/ProcessEventTest.php, line 19

Class

ProcessEventTest
@coversDefaultClass \Drupal\feeds\Event\ProcessEvent @group feeds

Namespace

Drupal\Tests\feeds\Unit\Event

Code

public function testGetItem() {
  $feed = $this
    ->createMock(FeedInterface::class);
  $item = $this
    ->createMock(ItemInterface::class);
  $event = new ProcessEvent($feed, $item);
  $this
    ->assertSame($item, $event
    ->getItem());
}