$controller =
new ExtensionStoreActionsController( $lifecycle =
$this->
createMock(ExtensionLifecycleService::
class),
$this->
createMock(ExtensionDownloader::
class),
$this->
createMock(PluginService::
class),
$this->
createMock(PluginManagementService::
class) );
$lifecycle->
expects(static::
once())->
method('uninstall'
);
static::
assertEquals( Response::HTTP_NO_CONTENT,
$controller->
uninstallExtension('plugin', 'test',
new Request(), Context::
createDefaultContext())->
getStatusCode() );
} public function testRemoveExtension(): void
{ $controller =
new ExtensionStoreActionsController( $lifecycle =
$this->
createMock(ExtensionLifecycleService::
class),
$this->
createMock(ExtensionDownloader::
class),
$this->
createMock(PluginService::
class),
$this->
createMock(PluginManagementService::
class) );