class UrlAliasTest
Same name in this branch
- 9 core/modules/path/tests/src/Kernel/Plugin/migrate/source/d7/UrlAliasTest.php \Drupal\Tests\path\Kernel\Plugin\migrate\source\d7\UrlAliasTest
Same name and namespace in other branches
- 11.x core/modules/path/tests/src/Kernel/Plugin/migrate/source/d6/UrlAliasTest.php \Drupal\Tests\path\Kernel\Plugin\migrate\source\d6\UrlAliasTest
- 11.x core/modules/path/tests/src/Kernel/Plugin/migrate/source/d7/UrlAliasTest.php \Drupal\Tests\path\Kernel\Plugin\migrate\source\d7\UrlAliasTest
Tests the d6_url_alias source plugin.
@covers \Drupal\path\Plugin\migrate\source\d6\UrlAlias
@group path
Hierarchy
- class \Drupal\KernelTests\KernelTestBase extends \Drupal\Core\DependencyInjection\ServiceProviderInterface uses \Drupal\KernelTests\AssertLegacyTrait, \Drupal\KernelTests\AssertContentTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\ExtensionListTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait implements \PHPUnit\Framework\TestCase
- class \Drupal\Tests\migrate\Kernel\MigrateSourceTestBase implements \Drupal\KernelTests\KernelTestBase
- class \Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase implements \Drupal\Tests\migrate\Kernel\MigrateSourceTestBase
- class \Drupal\Tests\path\Kernel\Plugin\migrate\source\d6\UrlAliasTest implements \Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase
- class \Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase implements \Drupal\Tests\migrate\Kernel\MigrateSourceTestBase
- class \Drupal\Tests\migrate\Kernel\MigrateSourceTestBase implements \Drupal\KernelTests\KernelTestBase
Expanded class hierarchy of UrlAliasTest
File
-
core/
modules/ path/ tests/ src/ Kernel/ Plugin/ migrate/ source/ d6/ UrlAliasTest.php, line 13
Namespace
Drupal\Tests\path\Kernel\Plugin\migrate\source\d6View source
class UrlAliasTest extends MigrateSqlSourceTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = [
'migrate_drupal',
'path',
];
/**
* {@inheritdoc}
*/
public function providerSource() {
$tests = [];
// The source data.
$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',
],
];
// The expected results.
$tests[0]['expected_data'] = $tests[0]['source_data']['url_alias'];
return $tests;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.