function MigrationTest::testGetMigrations
Same name in other branches
- 9 core/modules/migrate/tests/src/Unit/MigrationTest.php \Drupal\Tests\migrate\Unit\MigrationTest::testGetMigrations()
- 11.x core/modules/migrate/tests/src/Unit/MigrationTest.php \Drupal\Tests\migrate\Unit\MigrationTest::testGetMigrations()
Tests getting requirement list.
@covers ::getRequirements
File
-
core/
modules/ migrate/ tests/ src/ Unit/ MigrationTest.php, line 147
Class
- MigrationTest
- @coversDefaultClass \Drupal\migrate\Plugin\Migration
Namespace
Drupal\Tests\migrate\UnitCode
public function testGetMigrations() : void {
$migration = new TestMigration();
$requirements = [
'test_a',
'test_b',
'test_c',
'test_d',
];
$migration->setRequirements($requirements);
$this->assertEquals($requirements, $migration->getRequirements());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.