public function FeedImportHandlerTest::testPushImport in Feeds 8.3
@covers ::pushImport
File
- tests/
src/ Unit/ FeedImportHandlerTest.php, line 103
Class
- FeedImportHandlerTest
- @coversDefaultClass \Drupal\feeds\FeedImportHandler @group feeds
Namespace
Drupal\Tests\feeds\UnitCode
public function testPushImport() {
$this->handler
->expects($this
->once())
->method('getExecutable')
->willReturn($this
->createMock(FeedsExecutableInterface::class));
$this->feed
->expects($this
->once())
->method('lock')
->will($this
->returnValue($this->feed));
$file = $this
->resourcesPath() . '/csv/example.csv';
$this->handler
->pushImport($this->feed, file_get_contents($file), $this
->createMock(FileSystemInterface::class));
}