$handler,
$this->
createMock(ThemeLifecycleService::
class) );
$subscriber->
pluginPostActivate($event);
} public function testThemeLifecycleIsNotCalledWhenDeactivatedUsingContextOnUpdate(): void
{ $context = Context::
createDefaultContext();
$context->
addState(PluginLifecycleService::STATE_SKIP_ASSET_BUILDING
);
$event =
new PluginPreUpdateEvent( $this->
getPlugin(),
new UpdateContext( $this->
createMock(Plugin::
class),
$context,
'6.1.0',
'1.0.0',
$this->
createMock(MigrationCollection::
class),
'1.0.1'
) );