NodeClassicTest.php in Drupal 9
File
core/modules/migrate_drupal_ui/tests/src/Functional/d6/NodeClassicTest.php
View source
<?php
namespace Drupal\Tests\migrate_drupal_ui\Functional\d6;
use Drupal\migrate_drupal\NodeMigrateType;
use Drupal\Tests\migrate_drupal\Traits\NodeMigrateTypeTestTrait;
use Drupal\Tests\migrate_drupal_ui\Functional\MigrateUpgradeExecuteTestBase;
class NodeClassicTest extends MigrateUpgradeExecuteTestBase {
use NodeMigrateTypeTestTrait;
protected static $modules = [
'language',
'content_translation',
'config_translation',
'migrate_drupal_ui',
'telephone',
'aggregator',
'book',
'forum',
'statistics',
'migrate_drupal_multilingual',
];
protected function setUp() : void {
parent::setUp();
$this
->loadFixture($this
->getModulePath('migrate_drupal') . '/tests/fixtures/drupal6.php');
}
protected function getSourceBasePath() {
return __DIR__ . '/files';
}
protected function getEntityCounts() {
}
protected function getEntityCountsIncremental() {
}
protected function getAvailablePaths() {
}
protected function getMissingPaths() {
}
public function testNodeClassicUpgrade() {
$this
->makeNodeMigrateMapTable(NodeMigrateType::NODE_MIGRATE_TYPE_CLASSIC, '6');
$this
->submitCredentialForm();
$results = $this
->nodeMigrateMapTableCount('6');
$this
->assertSame(14, $results['node']);
$this
->assertSame(0, $results['node_complete']);
}
}