protected function VariantCollectionTraitTest::setUp in Chaos Tool Suite (ctools) 8.3
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ VariantCollectionTraitTest.php, line 30
Class
- VariantCollectionTraitTest
- Tests the methods of a variant-aware class.
Namespace
Drupal\Tests\ctools\UnitCode
protected function setUp() : void {
parent::setUp();
$container = new ContainerBuilder();
$this->manager = $this
->prophesize(PluginManagerInterface::class);
$container
->set('plugin.manager.display_variant', $this->manager
->reveal());
\Drupal::setContainer($container);
}