protected function PathNoCanonicalLinkTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/path/tests/src/Kernel/PathNoCanonicalLinkTest.php \Drupal\Tests\path\Kernel\PathNoCanonicalLinkTest::setUp()
Overrides KernelTestBase::setUp
File
- core/
modules/ path/ tests/ src/ Kernel/ PathNoCanonicalLinkTest.php, line 30
Class
- PathNoCanonicalLinkTest
- Tests path alias deletion when there is no canonical link template.
Namespace
Drupal\Tests\path\KernelCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('entity_test');
$this
->installEntitySchema('entity_test_mul');
\Drupal::service('router.builder')
->rebuild();
// Adding german language.
ConfigurableLanguage::create([
'id' => 'de',
])
->save();
$this
->config('language.types')
->setData([
'configurable' => [
'language_interface',
],
'negotiation' => [
'language_interface' => [
'enabled' => [
'language-url' => 0,
],
],
],
])
->save();
}