public function DataParserPluginBaseTest::testNextSourceWithoutUrls in Migrate Plus 8.5
Same name and namespace in other branches
- 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\UnitCode
public function testNextSourceWithoutUrls() : void {
$config = [
'urls' => [],
];
$parser = $this
->getMockedDataParser($config);
$parser
->expects($this
->never())
->method('openSourceUrl');
$this
->assertFalse($parser
->nextSource());
}