protected function AliasManagerTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/path_alias/tests/src/Unit/AliasManagerTest.php \Drupal\Tests\path_alias\Unit\AliasManagerTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
modules/ path_alias/ tests/ src/ Unit/ AliasManagerTest.php, line 76
Class
- AliasManagerTest
- @coversDefaultClass \Drupal\path_alias\AliasManager @group path_alias
Namespace
Drupal\Tests\path_alias\UnitCode
protected function setUp() {
parent::setUp();
$this->aliasRepository = $this
->createMock(AliasRepositoryInterface::class);
$this->aliasWhitelist = $this
->createMock('Drupal\\path_alias\\AliasWhitelistInterface');
$this->languageManager = $this
->createMock('Drupal\\Core\\Language\\LanguageManagerInterface');
$this->cache = $this
->createMock('Drupal\\Core\\Cache\\CacheBackendInterface');
$this->aliasManager = new AliasManager($this->aliasRepository, $this->aliasWhitelist, $this->languageManager, $this->cache);
}