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

testLoadRelationsByType() public method

    public function testLoadRelationsByType()
    {
        $this->insertRelationFixture();
        $gateway = $this->getDatabaseGateway();
        $relations = $gateway->loadRelations(57, null, \eZ\Publish\API\Repository\Values\Content\Relation::COMMON);
        $this->assertEquals(1, count($relations), 'Expecting one relation to be loaded');
        $this->assertValuesInRows('ezcontentobject_link_relation_type', array(\eZ\Publish\API\Repository\Values\Content\Relation::COMMON), $relations);
        $this->assertValuesInRows('ezcontentobject_link_to_contentobject_id', array(58), $relations);
    }
DoctrineDatabaseTest