eZ\Publish\Core\Repository\Tests\Service\Integration\SectionBase::testCreateSection PHP Метод

testCreateSection() публичный Метод

Test service function for creating sections.
public testCreateSection ( )
    public function testCreateSection()
    {
        $sectionService = $this->repository->getSectionService();
        $sectionCreateStruct = $sectionService->newSectionCreateStruct();
        $sectionCreateStruct->identifier = 'test';
        $sectionCreateStruct->name = 'Test';
        $createdSection = $sectionService->createSection($sectionCreateStruct);
        self::assertInstanceOf('\\eZ\\Publish\\API\\Repository\\Values\\Content\\Section', $createdSection);
        self::assertGreaterThan(0, $createdSection->id);
        $this->assertStructPropertiesCorrect($sectionCreateStruct, $createdSection);
    }