You are here

public function MigrationTest::testGetMigrations in Drupal 9

Tests getting requirement list.

@covers ::getRequirements

File

core/modules/migrate/tests/src/Unit/MigrationTest.php, line 121
Contains \Drupal\Tests\migrate\Unit\MigrationTest.

Class

MigrationTest
@coversDefaultClass \Drupal\migrate\Plugin\Migration

Namespace

Drupal\Tests\migrate\Unit

Code

public function testGetMigrations() {
  $migration = new TestMigration();
  $requirements = [
    'test_a',
    'test_b',
    'test_c',
    'test_d',
  ];
  $migration
    ->setRequirements($requirements);
  $this
    ->assertEquals($requirements, $migration
    ->getRequirements());
}