eZ\Publish\Core\Persistence\Legacy\Tests\Content\ObjectState\Gateway\DoctrineDatabaseTest::testUpdateObjectState PHP Method

testUpdateObjectState() public method

    public function testUpdateObjectState()
    {
        $gateway = $this->getDatabaseGateway();
        $objectStateFixture = $this->getObjectStateFixture();
        $objectStateFixture->id = 1;
        $gateway->updateObjectState($objectStateFixture);
        $this->assertEquals(array(array('ezcobj_state_default_language_id' => 4, 'ezcobj_state_group_id' => 2, 'ezcobj_state_id' => 1, 'ezcobj_state_identifier' => 'test_state', 'ezcobj_state_language_mask' => 5, 'ezcobj_state_priority' => 0, 'ezcobj_state_language_description' => 'Test state description', 'ezcobj_state_language_language_id' => 5, 'ezcobj_state_language_name' => 'Test state')), $this->getDatabaseGateway()->loadObjectStateData(1));
    }