public mockMultipleServices ( boolean $returnPlugin = true, boolean $installPluginResponse = true ) | ||
$returnPlugin | boolean | |
$installPluginResponse | boolean |
public function mockMultipleServices($returnPlugin = true, $installPluginResponse = true)
{
$mockPluginsService = $this->getMockPluginsService($returnPlugin, $installPluginResponse);
$this->setComponent(Craft::app(), 'plugins', $mockPluginsService);
$mockUpdatesService = $this->getMockUpdatesService();
$this->setComponent(Craft::app(), 'updates', $mockUpdatesService);
}