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

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

Test service method for getting the object state of content.
public testGetContentState ( )
    public function testGetContentState()
    {
        $objectStateService = $this->repository->getObjectStateService();
        $objectState = $objectStateService->getContentState($this->repository->getContentService()->loadContentInfo(4), $objectStateService->loadObjectStateGroup(2));
        $this->assertInstanceOf('\\eZ\\Publish\\API\\Repository\\Values\\ObjectState\\ObjectState', $objectState);
        $this->assertPropertiesCorrect(array('id' => 1, 'identifier' => 'not_locked', 'priority' => 0, 'defaultLanguageCode' => 'eng-US', 'languageCodes' => array('eng-US'), 'names' => array('eng-US' => 'Not locked'), 'descriptions' => array('eng-US' => '')), $objectState);
        $this->assertInstanceOf('\\eZ\\Publish\\API\\Repository\\Values\\ObjectState\\ObjectStateGroup', $objectState->getObjectStateGroup());
        $this->assertEquals(2, $objectState->getObjectStateGroup()->id);
    }