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

testLoadWithSingleTranslation() public method

    public function testLoadWithSingleTranslation()
    {
        $this->insertDatabaseFixture(__DIR__ . '/../_fixtures/contentobjects.php');
        $gateway = $this->getDatabaseGateway();
        $res = $gateway->load(226, 2, array('eng-GB'));
        $this->assertValuesInRows('ezcontentobject_attribute_language_code', array('eng-GB'), $res);
        $this->assertValuesInRows('ezcontentobject_attribute_language_id', array('4'), $res);
        $this->assertEquals(1, count($res));
    }
DoctrineDatabaseTest