mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-16 10:16:16 +01:00
Execute restart, when there are only plugins to uninstall
This commit is contained in:
@@ -415,6 +415,18 @@ class DefaultPluginManagerTest {
|
||||
|
||||
verify(mailPlugin).setUninstallable(false);
|
||||
}
|
||||
|
||||
@Test
|
||||
void shouldRestartWithUninstallOnly() {
|
||||
InstalledPlugin mailPlugin = createInstalled("scm-mail-plugin");
|
||||
when(mailPlugin.isMarkedForUninstall()).thenReturn(true);
|
||||
|
||||
when(loader.getInstalledPlugins()).thenReturn(singletonList(mailPlugin));
|
||||
|
||||
manager.executePendingAndRestart();
|
||||
|
||||
verify(eventBus).post(any(RestartEvent.class));
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
Reference in New Issue
Block a user