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

testCleanupAfterPublishHistorize() public method

Test for the cleanupAfterPublish() method.
public testCleanupAfterPublishHistorize ( $action, $languageId, $parentId, $textMD5 )
    public function testCleanupAfterPublishHistorize($action, $languageId, $parentId, $textMD5)
    {
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/urlaliases_downgrade.php');
        $gateway = $this->getGateway();
        $loadedRow = $gateway->loadRow($parentId, $textMD5);
        $gateway->cleanupAfterPublish($action, $languageId, 42, $parentId, 'jabberwocky');
        $reloadedRow = $gateway->loadRow($parentId, $textMD5);
        $loadedRow['is_original'] = '0';
        $loadedRow['link'] = 42;
        $loadedRow['id'] = 6;
        self::assertEquals($reloadedRow, $loadedRow);
    }