public function FetchEventTest::testGetFetcherResult in Feeds 8.3
@covers ::getFetcherResult
File
- tests/
src/ Unit/ Event/ FetchEventTest.php, line 17
Class
- FetchEventTest
- @coversDefaultClass \Drupal\feeds\Event\FetchEvent @group feeds
Namespace
Drupal\Tests\feeds\Unit\EventCode
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());
}