protected function PreserveTitlesOptionTest::setUp in Automatic Entity Label 8.3
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ PreserveTitlesOptionTest.php, line 66
Class
- PreserveTitlesOptionTest
- Tests 'Preserve already created titles' option.
Namespace
Drupal\Tests\auto_entitylabel\FunctionalCode
protected function setUp() {
parent::setUp();
$this->user = $this
->drupalCreateUser([], '', TRUE);
$this
->drupalLogin($this->user);
$this->nodeType = $this
->createContentType([
'type' => 'page',
]);
$this->configFactory = $this->container
->get('config.factory');
$this->nodeStorage = $this->container
->get('entity_type.manager')
->getStorage('node');
}