public function testUpdateLocationsContentVersionNo() { $this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php'); $gateway = $this->getLocationGateway(); $gateway->create(new CreateStruct(array('contentId' => 4096, 'remoteId' => 'some_id', 'contentVersion' => 1)), array('node_id' => '77', 'depth' => '2', 'path_string' => '/1/2/77/')); $gateway->updateLocationsContentVersionNo(4096, 2); $query = $this->handler->createSelectQuery(); $this->assertQueryResult(array(array(2)), $query->select('contentobject_version')->from('ezcontentobject_tree')->where($query->expr->eq('contentobject_id', 4096))); }