You are here

public function EventBaseTest::testGetFeed in Feeds 8.3

@covers ::getFeed

File

tests/src/Unit/Event/EventBaseTest.php, line 16

Class

EventBaseTest
@coversDefaultClass \Drupal\feeds\Event\EventBase @group feeds

Namespace

Drupal\Tests\feeds\Unit\Event

Code

public function testGetFeed() {
  $feed = $this
    ->createMock('Drupal\\feeds\\FeedInterface');
  $event = $this
    ->getMockForAbstractClass('Drupal\\feeds\\Event\\EventBase', [
    $feed,
  ]);
  $this
    ->assertSame($feed, $event
    ->getFeed());
}