eZ\Publish\Core\Persistence\Legacy\Tests\Content\Gateway\DoctrineDatabaseTest::testDeleteRelationsFrom PHP Method

testDeleteRelationsFrom() public method

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