$this->
createMock(ExtensionDownloader::
class),
$this->
createMock(PluginService::
class),
$this->
createMock(PluginManagementService::
class) );
$lifecycle->
expects(static::
once())->
method('update'
);
$request =
new Request([],
['allowNewPermissions' => true
]);
static::
assertEquals( Response::HTTP_NO_CONTENT,
$controller->
updateExtension($request, 'plugin', 'test', Context::
createDefaultContext())->
getStatusCode() );
} public function testUpdateExtensionWithoutConsent(): void
{ $controller =
new ExtensionStoreActionsController( $lifecycle =
$this->
createMock(ExtensionLifecycleService::
class),
$this->
createMock(ExtensionDownloader::
class),
$this->
createMock(PluginService::
class),
$this->
createMock(PluginManagementService::
class) );