public function DataParserPluginBaseTest::testNextSourceWithOneUrl in Migrate Plus 8.4
Same name and namespace in other branches
- 8.5 tests/src/Unit/DataParserPluginBaseTest.php \Drupal\Tests\migrate_plus\Unit\DataParserPluginBaseTest::testNextSourceWithOneUrl()
@covers ::nextSource
File
- tests/
src/ Unit/ DataParserPluginBaseTest.php, line 18
Class
- DataParserPluginBaseTest
- @coversDefaultClass \Drupal\migrate_plus\DataParserPluginBase
Namespace
Drupal\Tests\migrate_plus\UnitCode
public function testNextSourceWithOneUrl() {
$parser = $this
->getMockedDataParser();
$parser
->expects($this
->once())
->method('openSourceUrl')
->willReturn(TRUE);
$this
->assertTrue($parser
->nextSource());
}