/**
* @internal
*
* @covers \Shopware\Core\Framework\Plugin\Event\PluginPostDeactivationFailedEvent
*/
class PluginPostDeactivationFailedEventTest extends TestCase
{ public function testEvent(): void
{ $activateContext =
$this->
createMock(ActivateContext::
class);
$exception =
new \
Exception('failed'
);
$event =
new PluginPostDeactivationFailedEvent( new PluginEntity(),
$activateContext,
$exception );
static::
assertInstanceOf(PluginLifecycleEvent::
class,
$event);
static::
assertEquals($activateContext,
$event->
getContext());
static::
assertEquals($exception,
$event->
getException());
}}