protected function FreelinkingBrowserTestBase::setUp in Freelinking 4.0.x
Same name and namespace in other branches
- 8.3 tests/src/Functional/FreelinkingBrowserTestBase.php \Drupal\Tests\freelinking\Functional\FreelinkingBrowserTestBase::setUp()
Overrides BrowserTestBase::setUp
5 calls to FreelinkingBrowserTestBase::setUp()
- FreelinkingFilterTest::setUp in tests/
src/ Functional/ FreelinkingFilterTest.php - FreelinkingMultilingualTest::setUp in tests/
src/ Functional/ FreelinkingMultilingualTest.php - FreelinkingPrefixAffixTest::setUp in tests/
src/ Functional/ FreelinkingPrefixAffixTest.php - FreelinkingPrepopulateTest::setUp in modules/
freelinking_prepopulate/ tests/ src/ Functional/ FreelinkingPrepopulateTest.php - NodeTitleBuiltinFailoverTest::setUp in tests/
src/ Functional/ NodeTitleBuiltinFailoverTest.php
5 methods override FreelinkingBrowserTestBase::setUp()
- FreelinkingFilterTest::setUp in tests/
src/ Functional/ FreelinkingFilterTest.php - FreelinkingMultilingualTest::setUp in tests/
src/ Functional/ FreelinkingMultilingualTest.php - FreelinkingPrefixAffixTest::setUp in tests/
src/ Functional/ FreelinkingPrefixAffixTest.php - FreelinkingPrepopulateTest::setUp in modules/
freelinking_prepopulate/ tests/ src/ Functional/ FreelinkingPrepopulateTest.php - NodeTitleBuiltinFailoverTest::setUp in tests/
src/ Functional/ NodeTitleBuiltinFailoverTest.php
File
- tests/
src/ Functional/ FreelinkingBrowserTestBase.php, line 40
Class
- FreelinkingBrowserTestBase
- Base test class for functional tests.
Namespace
Drupal\Tests\freelinking\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Create a content type.
$this
->createContentType([
'name' => 'Basic page',
'type' => 'page',
]);
$this->privilegedUser = $this
->createUser([
'access administration pages',
'access content',
'administer content types',
'administer filters',
'access user profiles',
'create page content',
'edit own page content',
]);
$this
->drupalLogin($this->privilegedUser);
// Create two nodes as the very basic requirements for freelinking.
$this
->drupalCreateNode([
'type' => 'page',
'title' => t('First page'),
]);
$this
->drupalCreateNode([
'type' => 'page',
'title' => t('Second page'),
]);
}