protected function NodeTestBase::setUp in Drupal 9
Same name in this branch
- 9 core/modules/node/tests/src/Functional/NodeTestBase.php \Drupal\Tests\node\Functional\NodeTestBase::setUp()
- 9 core/modules/node/tests/src/Functional/Views/NodeTestBase.php \Drupal\Tests\node\Functional\Views\NodeTestBase::setUp()
Same name and namespace in other branches
- 8 core/modules/node/tests/src/Functional/NodeTestBase.php \Drupal\Tests\node\Functional\NodeTestBase::setUp()
Overrides BrowserTestBase::setUp
5 calls to NodeTestBase::setUp()
- ContentTranslationLanguageChangeTest::setUp in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationLanguageChangeTest.php - ContentTranslationOperationsTest::setUp in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationOperationsTest.php - NodeAccessCacheabilityTest::setUp in core/
modules/ node/ tests/ src/ Functional/ NodeAccessCacheabilityTest.php - NodeBlockFunctionalTest::setUp in core/
modules/ node/ tests/ src/ Functional/ NodeBlockFunctionalTest.php - PagePreviewTest::setUp in core/
modules/ node/ tests/ src/ Functional/ PagePreviewTest.php
28 methods override NodeTestBase::setUp()
- ContentTranslationLanguageChangeTest::setUp in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationLanguageChangeTest.php - ContentTranslationOperationsTest::setUp in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationOperationsTest.php - NodeAccessBaseTableTest::setUp in core/
modules/ node/ tests/ src/ Functional/ NodeAccessBaseTableTest.php - NodeAccessCacheabilityTest::setUp in core/
modules/ node/ tests/ src/ Functional/ NodeAccessCacheabilityTest.php - NodeAccessFieldTest::setUp in core/
modules/ node/ tests/ src/ Functional/ NodeAccessFieldTest.php
File
- core/
modules/ node/ tests/ src/ Functional/ NodeTestBase.php, line 32
Class
- NodeTestBase
- Sets up page and article content types.
Namespace
Drupal\Tests\node\FunctionalCode
protected function setUp() {
parent::setUp();
// Create Basic page and Article node types.
if ($this->profile != 'standard') {
$this
->drupalCreateContentType([
'type' => 'page',
'name' => 'Basic page',
'display_submitted' => FALSE,
]);
$this
->drupalCreateContentType([
'type' => 'article',
'name' => 'Article',
]);
}
$this->accessHandler = \Drupal::entityTypeManager()
->getAccessControlHandler('node');
}