protected function PathTest::installPathauto in Feeds 8.3
Installs pathauto and configures a pattern for nodes.
3 calls to PathTest::installPathauto()
- PathTest::testImportPathauto in tests/
src/ Kernel/ Feeds/ Target/ PathTest.php - Tests importing with and without automatic aliases.
- PathTest::testImportPathsWithPathauto in tests/
src/ Kernel/ Feeds/ Target/ PathTest.php - Tests importing paths when pathauto is enabled.
- PathTest::testUpdateNodePathsWithPathauto in tests/
src/ Kernel/ Feeds/ Target/ PathTest.php - Tests importing paths when pathauto is enabled.
File
- tests/
src/ Kernel/ Feeds/ Target/ PathTest.php, line 178
Class
- PathTest
- @coversDefaultClass \Drupal\feeds\Feeds\Target\Path @group feeds
Namespace
Drupal\Tests\feeds\Kernel\Feeds\TargetCode
protected function installPathauto() {
$this
->installModule('ctools');
$this
->installModule('token');
$this
->installModule('pathauto');
$this
->installConfig([
'pathauto',
'system',
'node',
]);
// Create pattern for nodes.
$this
->createPattern('node', '/content/[node:title]');
\Drupal::service('router.builder')
->rebuild();
}