function UrlAliasTest::providerSource
Same name in this branch
- 9 core/modules/path/tests/src/Kernel/Plugin/migrate/source/d6/UrlAliasTest.php \Drupal\Tests\path\Kernel\Plugin\migrate\source\d6\UrlAliasTest::providerSource()
Same name in other branches
- 8.9.x core/modules/path/tests/src/Kernel/Plugin/migrate/source/d6/UrlAliasTest.php \Drupal\Tests\path\Kernel\Plugin\migrate\source\d6\UrlAliasTest::providerSource()
- 8.9.x core/modules/path/tests/src/Kernel/Plugin/migrate/source/d7/UrlAliasTest.php \Drupal\Tests\path\Kernel\Plugin\migrate\source\d7\UrlAliasTest::providerSource()
- 10 core/modules/path/tests/src/Kernel/Plugin/migrate/source/d6/UrlAliasTest.php \Drupal\Tests\path\Kernel\Plugin\migrate\source\d6\UrlAliasTest::providerSource()
- 10 core/modules/path/tests/src/Kernel/Plugin/migrate/source/d7/UrlAliasTest.php \Drupal\Tests\path\Kernel\Plugin\migrate\source\d7\UrlAliasTest::providerSource()
- 11.x core/modules/path/tests/src/Kernel/Plugin/migrate/source/d6/UrlAliasTest.php \Drupal\Tests\path\Kernel\Plugin\migrate\source\d6\UrlAliasTest::providerSource()
- 11.x core/modules/path/tests/src/Kernel/Plugin/migrate/source/d7/UrlAliasTest.php \Drupal\Tests\path\Kernel\Plugin\migrate\source\d7\UrlAliasTest::providerSource()
Overrides MigrateSourceTestBase::providerSource
File
-
core/
modules/ path/ tests/ src/ Kernel/ Plugin/ migrate/ source/ d7/ UrlAliasTest.php, line 23
Class
- UrlAliasTest
- Tests the d7_url_alias source plugin.
Namespace
Drupal\Tests\path\Kernel\Plugin\migrate\source\d7Code
public function providerSource() {
$tests = [];
// The source data.
$tests[0]['source_data']['url_alias'] = [
[
'pid' => 1,
'source' => 'node/1',
'alias' => 'test-article',
'language' => 'en',
],
[
'pid' => 2,
'source' => 'node/2',
'alias' => '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.