You are here

public function MigrationStorageTest::testGetVariantIdsNoVariantsOrStaticDependencies in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/tests/src/Unit/MigrationStorageTest.php \Drupal\Tests\migrate\Unit\MigrationStorageTest::testGetVariantIdsNoVariantsOrStaticDependencies()

Tests getVariantIds() when no variants exist and there are no static (non-variant) dependencies.

@covers ::getVariantIds

File

core/modules/migrate/tests/src/Unit/MigrationStorageTest.php, line 88
Contains \Drupal\Tests\migrate\Unit\MigrationStorageTest.

Class

MigrationStorageTest
@coversDefaultClass \Drupal\migrate\MigrationStorage @group migrate

Namespace

Drupal\Tests\migrate\Unit

Code

public function testGetVariantIdsNoVariantsOrStaticDependencies() {
  $this->query
    ->method('execute')
    ->willReturn([]);
  $ids = $this->storage
    ->getVariantIds([
    'd6_node:*',
    'd6_node_revision:*',
  ]);
  $this
    ->assertSame([], $ids);
}