public function testLoadReverseRelationsWithType()
{
$this->insertRelationFixture();
$gateway = $this->getDatabaseGateway();
$relations = $gateway->loadReverseRelations(58, \eZ\Publish\API\Repository\Values\Content\Relation::COMMON);
self::assertEquals(1, count($relations));
$this->assertValuesInRows('ezcontentobject_link_from_contentobject_id', array(57), $relations);
$this->assertValuesInRows('ezcontentobject_link_relation_type', array(\eZ\Publish\API\Repository\Values\Content\Relation::COMMON), $relations);
}