protected $manager;
/**
* {@inheritdoc}
*/
protected function setUp(): void
{ parent::
setUp();
$this->classResolver =
$this->
prophesize(ClassResolverInterface::
class);
$this->manager =
new PluginFormFactory($this->classResolver->
reveal());
} /**
* @covers ::createInstance
*/
public function testCreateInstance() { $plugin_form =
$this->
prophesize(PluginFormInterface::
class);
$expected =
$plugin_form->
reveal();
$this->classResolver->
getInstanceFromDefinition(get_class($expected))->
willReturn($expected);