Метод | Описание | |
---|---|---|
getMockBasePlugin ( ) : PHPUnit_Framework_MockObject_MockObject | Craft\BasePlugin | ||
getMockPluginsService ( boolean $returnPlugin = true, boolean $installPluginResponse = true, boolean $enablePluginResponse = true, boolean $disablePluginResponse = true, boolean $uninstallPluginResponse = true ) : Craft\PluginsService | PHPUnit_Framework_MockObject_MockObject | ||
getMockUpdatesService ( ) : Craft\UpdatesService | PHPUnit_Framework_MockObject_MockObject | ||
getPluginsData ( ) : array | Returns plugins data. | |
mockMultipleServices ( boolean $returnPlugin = true, boolean $installPluginResponse = true ) | Prevent code duplication by mocking multiple services. | |
setUp ( ) | ||
testExport ( ) | Test export functionality. | |
testImportWithInstallException ( ) | Test default import functionality. | |
testImportWithInstalledDisabledPlugins ( ) | Test default import functionality. | |
testImportWithInstalledPlugins ( ) | Test default import functionality. | |
testImportWithMissingPlugin ( ) | Test default import functionality. | |
testImportWithNotInstalledPlugin ( ) | Test default import functionality. |
public getMockBasePlugin ( ) : PHPUnit_Framework_MockObject_MockObject | Craft\BasePlugin | ||
Результат | PHPUnit_Framework_MockObject_MockObject | Craft\BasePlugin |
public getMockPluginsService ( boolean $returnPlugin = true, boolean $installPluginResponse = true, boolean $enablePluginResponse = true, boolean $disablePluginResponse = true, boolean $uninstallPluginResponse = true ) : Craft\PluginsService | PHPUnit_Framework_MockObject_MockObject | ||
$returnPlugin | boolean | |
$installPluginResponse | boolean | |
$enablePluginResponse | boolean | |
$disablePluginResponse | boolean | |
$uninstallPluginResponse | boolean | |
Результат | Craft\PluginsService | PHPUnit_Framework_MockObject_MockObject |
public getMockUpdatesService ( ) : Craft\UpdatesService | PHPUnit_Framework_MockObject_MockObject | ||
Результат | Craft\UpdatesService | PHPUnit_Framework_MockObject_MockObject |
public getPluginsData ( ) : array | ||
Результат | array |
public mockMultipleServices ( boolean $returnPlugin = true, boolean $installPluginResponse = true ) | ||
$returnPlugin | boolean | |
$installPluginResponse | boolean |
public testImportWithInstallException ( ) |
public testImportWithInstalledDisabledPlugins ( ) |
public testImportWithInstalledPlugins ( ) |
public testImportWithMissingPlugin ( ) |
public testImportWithNotInstalledPlugin ( ) |