You are here

protected function PluginFormFactoryTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Plugin/PluginFormFactoryTest.php \Drupal\Tests\Core\Plugin\PluginFormFactoryTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Plugin/PluginFormFactoryTest.php, line 37

Class

PluginFormFactoryTest
@coversDefaultClass \Drupal\Core\Plugin\PluginFormFactory @group Plugin

Namespace

Drupal\Tests\Core\Plugin

Code

protected function setUp() : void {
  parent::setUp();
  $this->classResolver = $this
    ->prophesize(ClassResolverInterface::class);
  $this->manager = new PluginFormFactory($this->classResolver
    ->reveal());
}