UrlAliasTest.php in Drupal 9
File
core/modules/path/tests/src/Kernel/Plugin/migrate/source/d6/UrlAliasTest.php
View source
<?php
namespace Drupal\Tests\path\Kernel\Plugin\migrate\source\d6;
use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
class UrlAliasTest extends MigrateSqlSourceTestBase {
protected static $modules = [
'migrate_drupal',
'path',
];
public function providerSource() {
$tests = [];
$tests[0]['source_data']['url_alias'] = [
[
'pid' => 1,
'src' => 'node/1',
'dst' => 'test-article',
'language' => 'en',
],
[
'pid' => 2,
'src' => 'node/2',
'dst' => 'another-alias',
'language' => 'en',
],
];
$tests[0]['expected_data'] = $tests[0]['source_data']['url_alias'];
return $tests;
}
}