You are here

public function DataParserPluginBaseTest::testCountWithoutUrls 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::testCountWithoutUrls()

@covers ::count

File

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

Class

DataParserPluginBaseTest
@coversDefaultClass \Drupal\migrate_plus\DataParserPluginBase

Namespace

Drupal\Tests\migrate_plus\Unit

Code

public function testCountWithoutUrls() : void {
  $config = [
    'urls' => [],
  ];
  $parser = $this
    ->getMockedDataParser($config);
  $parser
    ->expects($this
    ->never())
    ->method('openSourceUrl');
  $this
    ->assertEquals(0, $parser
    ->count());
}