Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
TestContextAwarePluginDefinition example
private
$configurablePlugin
;
/** * {@inheritdoc} */
protected
function
setUp
(
)
: void
{
parent::
setUp
(
)
;
$plugin_definition
=
new
TestContextAwarePluginDefinition
(
)
;
$plugin_definition
->
addContextDefinition
(
'nato_letter', ContextDefinition::
create
(
'string'
)
)
;
$this
->plugin =
new
TestContextAwarePlugin
(
[
]
, 'the_sisko',
$plugin_definition
)
;
$this
->configurablePlugin =
new
TestConfigurableContextAwarePlugin
(
[
]
, 'the_sisko',
$plugin_definition
)
;
}
/** * @covers ::getContextDefinitions */
public
function
testGetContextDefinitions
(
)
{
$this
->
assertIsArray
(
$this
->plugin->
getContextDefinitions
(
)
)
;
}