protected $contextHandler;
/**
* {@inheritdoc}
*/
protected function setUp(): void
{ parent::
setUp();
$this->contextHandler =
new ContextHandler();
$namespaces =
new \
ArrayObject([ 'Drupal\\Core\\TypedData' =>
$this->root . '/core/lib/Drupal/Core/TypedData',
'Drupal\\Core\\Validation' =>
$this->root . '/core/lib/Drupal/Core/Validation',
]);
$cache_backend =
new NullBackend('cache'
);
$module_handler =
$this->
prophesize(ModuleHandlerInterface::
class);
$class_resolver =
$this->
prophesize(ClassResolverInterface::
class);
$class_resolver->
getInstanceFromDefinition(Argument::
type('string'
))->
will(function D
$arguments) { $class_name =
$arguments[0
];
return new $class_name();
});