You are here

public function DataParserPluginBaseTest::testNextSourceWithoutUrls in Migrate Plus 8.5

Same name and namespace in other branches
  1. 8.4 tests/src/Unit/DataParserPluginBaseTest.php \Drupal\Tests\migrate_plus\Unit\DataParserPluginBaseTest::testNextSourceWithoutUrls()

@covers ::nextSource

File

tests/src/Unit/DataParserPluginBaseTest.php, line 29

Class

DataParserPluginBaseTest
@coversDefaultClass \Drupal\migrate_plus\DataParserPluginBase

Namespace

Drupal\Tests\migrate_plus\Unit

Code

public function testNextSourceWithoutUrls() : void {
  $config = [
    'urls' => [],
  ];
  $parser = $this
    ->getMockedDataParser($config);
  $parser
    ->expects($this
    ->never())
    ->method('openSourceUrl');
  $this
    ->assertFalse($parser
    ->nextSource());
}