protected function MenuLinkParentTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Unit/process/MenuLinkParentTest.php \Drupal\Tests\migrate\Unit\process\MenuLinkParentTest::setUp()
- 10 core/modules/migrate/tests/src/Unit/process/MenuLinkParentTest.php \Drupal\Tests\migrate\Unit\process\MenuLinkParentTest::setUp()
Overrides MigrateProcessTestCase::setUp
File
- core/
modules/ migrate/ tests/ src/ Unit/ process/ MenuLinkParentTest.php, line 64
Class
- MenuLinkParentTest
- Tests the menu link parent process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
protected function setUp() : void {
parent::setUp();
$this->migration = $this
->prophesize(MigrationInterface::class);
$this->migrateLookup = $this
->prophesize(MigrateLookupInterface::class);
$this->menuLinkManager = $this
->prophesize(MenuLinkManagerInterface::class);
$this->menuLinkStorage = $this
->prophesize(EntityStorageInterface::class);
$container = new ContainerBuilder();
$container
->set('migrate.lookup', $this->migrateLookup
->reveal());
$this->pathValidator = $this
->prophesize(PathValidatorInterface::class);
$container
->set('path.validator', $this->pathValidator
->reveal());
\Drupal::setContainer($container);
}