eZ\Publish\Core\Persistence\Legacy\Tests\Content\ObjectState\MapperTest::getObjectStateFixture PHP Method

getObjectStateFixture() protected method

Returns an object state fixture.
protected getObjectStateFixture ( ) : eZ\Publish\SPI\Persistence\Content\ObjectState
return eZ\Publish\SPI\Persistence\Content\ObjectState
    protected function getObjectStateFixture()
    {
        $objectState = new ObjectState();
        $objectState->identifier = 'not_locked';
        $objectState->defaultLanguage = 'eng-US';
        $objectState->languageCodes = array('eng-US');
        $objectState->name = array('eng-US' => 'Not locked');
        $objectState->description = array('eng-US' => '');
        return $objectState;
    }