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

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

Test service function for updating sections.
    public function testUpdateSectionThrowsInvalidArgumentException()
    {
        $sectionService = $this->repository->getSectionService();
        $loadedSection = $sectionService->loadSectionByIdentifier('standard');
        $sectionUpdateStruct = $sectionService->newSectionUpdateStruct();
        $sectionUpdateStruct->identifier = 'media';
        $sectionUpdateStruct->name = 'Media';
        $sectionService->updateSection($loadedSection, $sectionUpdateStruct);
    }