FetchEventTest.php in Feeds 8.3
File
tests/src/Unit/Event/FetchEventTest.php
View source
<?php
namespace Drupal\Tests\feeds\Unit\Event;
use Drupal\feeds\Event\FetchEvent;
use Drupal\Tests\feeds\Unit\FeedsUnitTestCase;
class FetchEventTest extends FeedsUnitTestCase {
public function testGetFetcherResult() {
$feed = $this
->createMock('Drupal\\feeds\\FeedInterface');
$result = $this
->createMock('Drupal\\feeds\\Result\\FetcherResultInterface');
$event = new FetchEvent($feed);
$event
->setFetcherResult($result);
$this
->assertSame($result, $event
->getFetcherResult());
}
}