function LegacyBlockPluginIdTest::setUp
Overrides MigrateProcessTestCase::setUp
File
-
core/
modules/ block/ tests/ src/ Unit/ Plugin/ migrate/ process/ LegacyBlockPluginIdTest.php, line 26
Class
- LegacyBlockPluginIdTest
- Tests legacy usage of BlockPluginId.
Namespace
Drupal\Tests\block\Unit\Plugin\migrate\processCode
public function setUp() {
parent::setUp();
$migrate_lookup = $this->prophesize(MigrateLookupInterface::class);
$container = new ContainerBuilder();
$container->set('migrate.lookup', $migrate_lookup->reveal());
\Drupal::setContainer($container);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.