You are here

public function FeedRefreshTest::testLockException in Feeds 8.3

Tests that an import cannot start when the feed is locked.

File

tests/src/Unit/Plugin/QueueWorker/FeedRefreshTest.php, line 115

Class

FeedRefreshTest
@coversDefaultClass \Drupal\feeds\Plugin\QueueWorker\FeedRefresh @group feeds

Namespace

Drupal\Tests\feeds\Unit\Plugin\QueueWorker

Code

public function testLockException() {
  $this->feed
    ->expects($this
    ->once())
    ->method('lock')
    ->will($this
    ->throwException(new LockException()));
  $this->plugin
    ->processItem([
    $this->feed,
    FeedsExecutableInterface::BEGIN,
    [],
  ]);
}