eZ\Publish\Core\Repository\Tests\Service\Integration\ObjectStateBase::testUpdateObjectStateThrowsInvalidArgumentException PHP Метод

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

Test service method for updating object state throwing InvalidArgumentException.
    public function testUpdateObjectStateThrowsInvalidArgumentException()
    {
        $objectStateService = $this->repository->getObjectStateService();
        $stateUpdateStruct = $objectStateService->newObjectStateUpdateStruct();
        $stateUpdateStruct->identifier = 'locked';
        $state = $objectStateService->loadObjectState(1);
        $objectStateService->updateObjectState($state, $stateUpdateStruct);
    }