IdConflictTest.php

Same filename in this branch
  1. 9 core/modules/migrate_drupal_ui/tests/src/Functional/d7/IdConflictTest.php
Same filename in other branches
  1. 8.9.x core/modules/migrate_drupal_ui/tests/src/Functional/d6/IdConflictTest.php
  2. 8.9.x core/modules/migrate_drupal_ui/tests/src/Functional/d7/IdConflictTest.php
  3. 10 core/modules/migrate_drupal_ui/tests/src/Functional/d6/IdConflictTest.php
  4. 10 core/modules/migrate_drupal_ui/tests/src/Functional/d7/IdConflictTest.php
  5. 11.x core/modules/migrate_drupal_ui/tests/src/Functional/d6/IdConflictTest.php
  6. 11.x core/modules/migrate_drupal_ui/tests/src/Functional/d7/IdConflictTest.php

Namespace

Drupal\Tests\migrate_drupal_ui\Functional\d6

File

core/modules/migrate_drupal_ui/tests/src/Functional/d6/IdConflictTest.php

View source
<?php

namespace Drupal\Tests\migrate_drupal_ui\Functional\d6;

use Drupal\Tests\migrate_drupal_ui\Functional\MigrateUpgradeExecuteTestBase;

/**
 * Tests Drupal 6 Id Conflict page.
 *
 * @group migrate_drupal_ui
 */
class IdConflictTest extends MigrateUpgradeExecuteTestBase {
    
    /**
     * {@inheritdoc}
     */
    protected static $modules = [
        'book',
        'config_translation',
        'content_translation',
        'forum',
        'language',
        'migrate_drupal_ui',
        'statistics',
        'telephone',
    ];
    
    /**
     * {@inheritdoc}
     */
    protected function setUp() : void {
        parent::setUp();
        $this->loadFixture($this->getModulePath('migrate_drupal') . '/tests/fixtures/drupal6.php');
    }
    
    /**
     * {@inheritdoc}
     */
    protected function getSourceBasePath() {
        return __DIR__ . '/files';
    }
    
    /**
     * {@inheritdoc}
     */
    protected function getEntityCounts() {
        return [];
    }
    
    /**
     * {@inheritdoc}
     */
    protected function getEntityCountsIncremental() {
        return [];
    }
    
    /**
     * {@inheritdoc}
     */
    protected function getAvailablePaths() {
        return [];
    }
    
    /**
     * {@inheritdoc}
     */
    protected function getMissingPaths() {
        return [];
    }
    
    /**
     * Tests ID Conflict form.
     */
    public function testIdConflictForm() {
        // Start the upgrade process.
        $this->submitCredentialForm();
        $entity_types = [
            'block_content',
            'menu_link_content',
            'file',
            'taxonomy_term',
            'user',
            'comment',
            'node',
        ];
        $this->assertIdConflictForm($entity_types);
    }

}

Classes

Title Deprecated Summary
IdConflictTest Tests Drupal 6 Id Conflict page.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.