protected function ModalPageTest::setUp in Modal 8.2
Same name in this branch
- 8.2 tests/src/Unit/ModalPageTest.php \Drupal\Tests\modal_page\Unit\ModalPageTest::setUp()
- 8.2 tests/src/Kernel/ModalPageTest.php \Drupal\Tests\modal_page\Kernel\ModalPageTest::setUp()
Same name and namespace in other branches
- 8.3 tests/src/Kernel/ModalPageTest.php \Drupal\Tests\modal_page\Kernel\ModalPageTest::setUp()
The setUp.
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ ModalPageTest.php, line 35
Class
- ModalPageTest
- KernelTests for ModalPage service class.
Namespace
Drupal\Tests\modal_page\KernelCode
protected function setUp() {
parent::setUp();
$this
->installConfig([
'modal_page',
]);
$this->languageManager = $this->container
->get('language_manager');
$this->entityTypeManager = $this->container
->get('entity_type.manager');
$this->configFactory = $this->container
->get('config.factory');
$this->database = $this->container
->get('database');
$this->requestStack = $this->container
->get('request_stack');
$this->pathMatcher = $this->container
->get('path.matcher');
$this->uuid = $this->container
->get('uuid');
$this->currentUser = $this->container
->get('current_user');
$this->aliasManager = $this->container
->get('path_alias.manager');
$this->modalPage = new ModalPage($this->languageManager, $this->entityTypeManager, $this->configFactory, $this->database, $this->requestStack, $this->pathMatcher, $this->uuid, $this->currentUser, $this->aliasManager);
}