diff --git a/core/lib/Drupal/Core/CoreBundle.php b/core/lib/Drupal/Core/CoreBundle.php index af957a2..2076707 100644 --- a/core/lib/Drupal/Core/CoreBundle.php +++ b/core/lib/Drupal/Core/CoreBundle.php @@ -156,8 +156,6 @@ public function build(ContainerBuilder $container) { ->addArgument(new Reference('path.alias_manager')) ->addArgument(new Reference('cache.path')); - $container->register('path.alias_manager.memory', 'Drupal\Core\Path\MemoryAliasManager'); - $container->register('path.crud', 'Drupal\Core\Path\Path') ->addArgument(new Reference('database')) ->addArgument(new Reference('path.alias_manager')); diff --git a/core/modules/edit/lib/Drupal/edit/Tests/MetadataGeneratorTest.php b/core/modules/edit/lib/Drupal/edit/Tests/MetadataGeneratorTest.php index a8cec27..ddfba6c 100644 --- a/core/modules/edit/lib/Drupal/edit/Tests/MetadataGeneratorTest.php +++ b/core/modules/edit/lib/Drupal/edit/Tests/MetadataGeneratorTest.php @@ -125,7 +125,6 @@ function testSimpleEntityType() { } function testEditorWithCustomMetadata() { - $this->installSchema('system', 'url_alias'); $this->enableModules(array('user', 'filter')); // Enable edit_test module so that the WYSIWYG Create.js PropertyEditor diff --git a/core/modules/editor/lib/Drupal/editor/Tests/EditorManagerTest.php b/core/modules/editor/lib/Drupal/editor/Tests/EditorManagerTest.php index f85f176..7a7c79e 100644 --- a/core/modules/editor/lib/Drupal/editor/Tests/EditorManagerTest.php +++ b/core/modules/editor/lib/Drupal/editor/Tests/EditorManagerTest.php @@ -42,7 +42,6 @@ function setUp() { parent::setUp(); // Install the Filter module. - $this->installSchema('system', 'url_alias'); $this->enableModules(array('user', 'filter')); // Add text formats. diff --git a/core/modules/filter/lib/Drupal/filter/Tests/FilterDefaultConfigTest.php b/core/modules/filter/lib/Drupal/filter/Tests/FilterDefaultConfigTest.php index fd37fb8..57a2cdb 100644 --- a/core/modules/filter/lib/Drupal/filter/Tests/FilterDefaultConfigTest.php +++ b/core/modules/filter/lib/Drupal/filter/Tests/FilterDefaultConfigTest.php @@ -27,8 +27,6 @@ public static function getInfo() { function setUp() { parent::setUp(); $this->enableModules(array('user')); - // filter_permission() calls into url() to output a link in the description. - $this->installSchema('system', 'url_alias'); } /** diff --git a/core/modules/simpletest/lib/Drupal/simpletest/DrupalUnitTestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/DrupalUnitTestBase.php index 7c93af9..b3b6098 100644 --- a/core/modules/simpletest/lib/Drupal/simpletest/DrupalUnitTestBase.php +++ b/core/modules/simpletest/lib/Drupal/simpletest/DrupalUnitTestBase.php @@ -154,6 +154,11 @@ public function containerBuild($container) { ->register('keyvalue', 'Drupal\Core\KeyValueStore\KeyValueFactory') ->addArgument(new Reference('service_container')); } + + + // Register a memory only path alias manager. + $container->register('path.alias_manager.memory', 'Drupal\Core\Path\MemoryAliasManager'); + $container->register('path.alias_manager.cached', 'Drupal\Core\CacheDecorator\AliasManagerCacheDecorator') ->addArgument(new Reference('path.alias_manager.memory')) ->addArgument(new Reference('cache.path'));