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

testLoadTypeData() public method

public testLoadTypeData ( )
    public function testLoadTypeData()
    {
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/existing_types.php');
        $gateway = $this->getGateway();
        $rows = $gateway->loadTypeData(1, 0);
        $this->assertEquals(5, count($rows));
        $this->assertEquals(45, count($rows[0]));
        /*
        * Store mapper fixture
        *
                file_put_contents(
           dirname( __DIR__ ) . '/_fixtures/map_load_type.php',
           "<?php\n\nreturn " . var_export( $rows, true ) . ";\n"
                );
        */
    }