public function testInsertRelation()
{
$struct = $this->getRelationCreateStructFixture();
$gateway = $this->getDatabaseGateway();
$gateway->insertRelation($struct);
$this->assertQueryResult(array(array('id' => 1, 'from_contentobject_id' => $struct->sourceContentId, 'from_contentobject_version' => $struct->sourceContentVersionNo, 'contentclassattribute_id' => $struct->sourceFieldDefinitionId, 'to_contentobject_id' => $struct->destinationContentId, 'relation_type' => $struct->type)), $this->getDatabaseHandler()->createSelectQuery()->select(array('id', 'from_contentobject_id', 'from_contentobject_version', 'contentclassattribute_id', 'to_contentobject_id', 'relation_type'))->from('ezcontentobject_link')->where('id = 1'));
}