public function UploadFetcherTest::testFetch in Feeds 8.3
Tests a fetch that succeeds.
@covers ::fetch
File
- tests/
src/ Unit/ Feeds/ Fetcher/ UploadFetcherTest.php, line 74
Class
- UploadFetcherTest
- @coversDefaultClass \Drupal\feeds\Feeds\Fetcher\UploadFetcher @group feeds
Namespace
Drupal\Tests\feeds\Unit\Feeds\FetcherCode
public function testFetch() {
touch('vfs://feeds/test_file');
$feed = $this
->createMock(FeedInterface::class);
$feed
->expects($this
->any())
->method('getSource')
->will($this
->returnValue('vfs://feeds/test_file'));
$this->fetcher
->fetch($feed, $this->state);
}