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

testCreateFixtureForMapperExtractContentFromRows() public method

    public function testCreateFixtureForMapperExtractContentFromRows()
    {
        $this->insertDatabaseFixture(__DIR__ . '/../_fixtures/contentobjects.php');
        $gateway = $this->getDatabaseGateway();
        $res = $gateway->load(226, 2);
        $res = array_merge($res);
        $orig = (include __DIR__ . '/../_fixtures/extract_content_from_rows.php');
        /*$this->storeFixture(
              __DIR__ . '/../_fixtures/extract_content_from_rows.php',
              $res
          );*/
        $this->assertEquals($orig, $res, 'Fixtures differ between what was previously stored(expected) and what it now generates(actual), this hints either some mistake in impl or that the fixture (../_fixtures/extract_content_from_rows.php) and tests needs to be adapted.');
    }
DoctrineDatabaseTest