3 namespace Drupal\KernelTests\Core\Path;
5 use Drupal\Core\Database\Database;
6 use Drupal\KernelTests\KernelTestBase;
7 use Drupal\system\Tests\Path\UrlAliasFixtures;
10 * Base class for Path/URL alias integration tests.
12 abstract class PathUnitTestBase extends KernelTestBase {
15 * @var \Drupal\system\Tests\Path\UrlAliasFixtures
19 protected function setUp() {
21 $this->fixtures = new UrlAliasFixtures();
22 // The alias whitelist expects that the menu path roots are set by a
23 // menu router rebuild.
24 \Drupal::state()->set('router.path_roots', ['user', 'admin']);
27 protected function tearDown() {
28 $this->fixtures->dropTables(Database::getConnection());