public function testUpdateObjectStateLinks()
{
$gateway = $this->getDatabaseGateway();
$gateway->updateObjectStateLinks(1, 2);
$query = $this->getDatabaseHandler()->createSelectQuery();
$query->select($query->expr->count('*'))->from('ezcobj_state_link')->where('contentobject_state_id = 1');
$statement = $query->prepare();
$statement->execute();
$this->assertEquals(0, $statement->fetchColumn());
$query = $this->getDatabaseHandler()->createSelectQuery();
$query->select($query->expr->count('*'))->from('ezcobj_state_link')->where('contentobject_state_id = 2');
$statement = $query->prepare();
$statement->execute();
$this->assertEquals(185, $statement->fetchColumn());
}