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

testDeleteRelationWithCompositeBitmask() public method

    public function testDeleteRelationWithCompositeBitmask()
    {
        $this->insertRelationFixture();
        $gateway = $this->getDatabaseGateway();
        $gateway->deleteRelation(11, RelationValue::COMMON);
        /** @var $query \eZ\Publish\Core\Persistence\Database\SelectQuery */
        $query = $this->getDatabaseHandler()->createSelectQuery();
        $this->assertQueryResult(array(array('relation_type' => RelationValue::LINK)), $query->select(array('relation_type'))->from('ezcontentobject_link')->where($query->expr->eq('id', 11)));
    }
DoctrineDatabaseTest