eZ\Publish\Core\Persistence\Legacy\Tests\Content\Location\Gateway\DoctrineDatabaseTest::testUpdateLocation PHP Method

testUpdateLocation() public method

public testUpdateLocation ( $field, $value )
    public function testUpdateLocation($field, $value)
    {
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php');
        $handler = $this->getLocationGateway();
        $handler->update(new Location\UpdateStruct(array('priority' => 23, 'remoteId' => 'someNewHash', 'sortField' => 4, 'sortOrder' => 4)), 70);
        $query = $this->handler->createSelectQuery();
        $this->assertQueryResult(array(array($value)), $query->select($field)->from('ezcontentobject_tree')->where($query->expr->in('node_id', array(70))));
    }