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

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

Test service method for loading object state.
public testLoadObjectState ( )
    public function testLoadObjectState()
    {
        $state = $this->repository->getObjectStateService()->loadObjectState(1);
        $this->assertInstanceOf('\\eZ\\Publish\\API\\Repository\\Values\\ObjectState\\ObjectState', $state);
        $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' => '')), $state);
        $this->assertInstanceOf('\\eZ\\Publish\\API\\Repository\\Values\\ObjectState\\ObjectStateGroup', $state->getObjectStateGroup());
        $this->assertEquals(2, $state->getObjectStateGroup()->id);
    }