public function testDeleteRelationsWithSecondArgument()
{
$this->insertDatabaseFixture(__DIR__ . '/../_fixtures/contentobjects.php');
$beforeCount = array('all' => $this->countContentRelations(), 'from' => $this->countContentRelations(225), 'to' => $this->countContentRelations(null, 225));
$gateway = $this->getDatabaseGateway();
$gateway->deleteRelations(225, 2);
$this->assertEquals(array('all' => $beforeCount['all'] - 1, 'from' => $beforeCount['from'] - 1, 'to' => $beforeCount['to']), array('all' => $this->countContentRelations(), 'from' => $this->countContentRelations(225), 'to' => $this->countContentRelations(null, 225)));
}