NerdsAndCompany\Schematic\Services\CategoryGroupsTest::provideValidCategoryGroups PHP Method

provideValidCategoryGroups() public method

public provideValidCategoryGroups ( ) : array
return array
    public function provideValidCategoryGroups()
    {
        return ['emptyArray' => ['CategoryGroups' => [], 'expectedResult' => []], 'single group' => ['CategoryGroups' => ['group1' => $this->getMockCategoryGroup(1)], 'expectedResult' => ['groupHandle1' => ['name' => 'groupName1', 'hasUrls' => null, 'template' => null, 'maxLevels' => null, 'locales' => ['en' => ['urlFormat' => null, 'nestedUrlFormat' => null]], 'fieldLayout' => ['fields' => []]]]], 'multiple groups' => ['CategoryGroups' => ['group1' => $this->getMockCategoryGroup(1), 'group2' => $this->getMockCategoryGroup(2)], 'expectedResult' => ['groupHandle1' => ['name' => 'groupName1', 'hasUrls' => null, 'template' => null, 'maxLevels' => null, 'locales' => ['en' => ['urlFormat' => null, 'nestedUrlFormat' => null]], 'fieldLayout' => ['fields' => []]], 'groupHandle2' => ['name' => 'groupName2', 'hasUrls' => null, 'template' => null, 'maxLevels' => null, 'locales' => ['en' => ['urlFormat' => null, 'nestedUrlFormat' => null]], 'fieldLayout' => ['fields' => []]]]]];
    }