MigrateUiParagraphsTest.php in Paragraphs 8
File
tests/src/Functional/Migrate/MigrateUiParagraphsTest.php
View source
<?php
namespace Drupal\Tests\paragraphs\Functional\Migrate;
use Drupal\Tests\paragraphs\Traits\ParagraphsNodeMigrationAssertionsTrait;
class MigrateUiParagraphsTest extends MigrateUiParagraphsTestBase {
use ParagraphsNodeMigrationAssertionsTrait;
public function testParagraphsMigrate($node_migrate_type_classic) {
if (!$node_migrate_type_classic && version_compare(\Drupal::VERSION, '8.9', '<')) {
$this
->pass("Drupal 8.8.x has only the 'classic' node migration.");
return;
}
$this
->setClassicNodeMigration($node_migrate_type_classic);
$this
->assertMigrateUpgradeViaUi();
$this
->assertParagraphsMigrationResults();
$this
->assertNode8Paragraphs();
$this
->assertNode9Paragraphs();
$this
->assertIcelandicNode9Paragraphs();
}
public function providerParagraphsMigrate() {
return [
[
'node_migrate_type_classic' => TRUE,
],
[
'node_migrate_type_classic' => FALSE,
],
];
}
}