static::
assertNotNull($pluginInstalled->
getInstalledAt());
$this->
expectException(PluginNotActivatedException::
class);
$this->
expectExceptionMessage(sprintf('Plugin "%s" is not activated.', self::PLUGIN_NAME
));
$this->pluginLifecycleService->
deactivatePlugin($pluginInstalled,
$context);
} private function removeMigrationsCannotRemoveShopwareMigrations(Context
$context): void
{ $this->pluginService->
refreshPlugins($context,
new NullIO());
$overAllCount =
$this->
getMigrationCount(''
);
$swagTest =
new SwagTest(true, '', ''
);
$_SERVER['FAKE_MIGRATION_NAMESPACE'
] = 'Shopware\\Core';
$exception = null;
try { $swagTest->
removeMigrations();
} catch (\Exception
$e) { $exception =
$e;
}