PHP Class NerdsAndCompany\Schematic\Services\CategoryGroupsTest

Author: Nerds & Company
Inheritance: extends Craft\BaseTest
Show file Open project: itmundi/schematic

Public Methods

Method Description
provideValidCategoryGroupDefinitions ( ) : array
provideValidCategoryGroups ( ) : array
testImportWithForceOption ( array $groupDefinitions )
testSuccessfulExport ( array $groups, array $expectedResult = [] )
testSuccessfulImport ( array $groupDefinitions )

Private Methods

Method Description
getMockCategoryGroup ( string $groupId ) : PHPUnit_Framework_MockObject_MockObject | Craft\CategoryGroupModel
getMockCategoryGroupLocale ( ) : PHPUnit_Framework_MockObject_MockObject | Craft\CategoryGroupLocaleModel
getMockDbCommand ( ) : PHPUnit_Framework_MockObject_MockObject | Craft\DbCommand
getMockFieldLayout ( ) : PHPUnit_Framework_MockObject_MockObject | Craft\FieldLayoutModel
setMockCategoriesService ( ) : PHPUnit_Framework_MockObject_MockObject | Craft\CategoriesService
setMockDbConnection ( ) : PHPUnit_Framework_MockObject_MockObject | Craft\DbConnection
setMockFieldsService ( ) : PHPUnit_Framework_MockObject_MockObject | CraftFieldsService
setMockSchematicFields ( ) : PHPUnit_Framework_MockObject_MockObject | fields

Method Details

provideValidCategoryGroupDefinitions() public method

provideValidCategoryGroups() public method

public provideValidCategoryGroups ( ) : array
return array

testImportWithForceOption() public method

public testImportWithForceOption ( array $groupDefinitions )
$groupDefinitions array

testSuccessfulExport() public method

public testSuccessfulExport ( array $groups, array $expectedResult = [] )
$groups array
$expectedResult array

testSuccessfulImport() public method

public testSuccessfulImport ( array $groupDefinitions )
$groupDefinitions array