You are here

EventBaseTest.php in Feeds 8.3

File

tests/src/Unit/Event/EventBaseTest.php
View source
<?php

namespace Drupal\Tests\feeds\Unit\Event;

use Drupal\Tests\feeds\Unit\FeedsUnitTestCase;

/**
 * @coversDefaultClass \Drupal\feeds\Event\EventBase
 * @group feeds
 */
class EventBaseTest extends FeedsUnitTestCase {

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

}

Classes

Namesort descending Description
EventBaseTest @coversDefaultClass \Drupal\feeds\Event\EventBase @group feeds