You are here

public function FeedImportHandlerTest::testStartCronImport in Feeds 8.3

@covers ::startCronImport

File

tests/src/Unit/FeedImportHandlerTest.php, line 88

Class

FeedImportHandlerTest
@coversDefaultClass \Drupal\feeds\FeedImportHandler @group feeds

Namespace

Drupal\Tests\feeds\Unit

Code

public function testStartCronImport() {
  $this->feed
    ->expects($this
    ->once())
    ->method('isLocked')
    ->will($this
    ->returnValue(FALSE));
  $this->handler
    ->expects($this
    ->once())
    ->method('getExecutable')
    ->willReturn($this
    ->createMock(FeedsExecutableInterface::class));
  $this->handler
    ->startCronImport($this->feed);
}