public function LegacyBlockPluginIdTest::setUp in Drupal 8
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);
}