NerdsAndCompany\Schematic\Services\PluginsTest::mockMultipleServices PHP Method

mockMultipleServices() public method

Prevent code duplication by mocking multiple services.
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);
    }