You are here

protected function ExamplesBrowserTestBase::setUp in Examples for Developers 3.x

Same name and namespace in other branches
  1. 8 tests/src/Functional/ExamplesBrowserTestBase.php \Drupal\Tests\examples\Functional\ExamplesBrowserTestBase::setUp()

Overrides BrowserTestBase::setUp

4 calls to ExamplesBrowserTestBase::setUp()
CronExampleTest::setUp in modules/cron_example/tests/src/Functional/CronExampleTest.php
ExampleFunctionalTest::setUp in modules/testing_example/tests/src/Functional/ExampleFunctionalTest.php
The setUp() method is run before every other test method, so commonalities should go here.
FieldExampleBrowserTestBase::setUp in modules/field_example/tests/src/Functional/FieldExampleBrowserTestBase.php
Once installed, a content type with the desired field is created.
PagerExampleTest::setUp in modules/pager_example/tests/src/Functional/PagerExampleTest.php
4 methods override ExamplesBrowserTestBase::setUp()
CronExampleTest::setUp in modules/cron_example/tests/src/Functional/CronExampleTest.php
ExampleFunctionalTest::setUp in modules/testing_example/tests/src/Functional/ExampleFunctionalTest.php
The setUp() method is run before every other test method, so commonalities should go here.
FieldExampleBrowserTestBase::setUp in modules/field_example/tests/src/Functional/FieldExampleBrowserTestBase.php
Once installed, a content type with the desired field is created.
PagerExampleTest::setUp in modules/pager_example/tests/src/Functional/PagerExampleTest.php

File

tests/src/Functional/ExamplesBrowserTestBase.php, line 25

Class

ExamplesBrowserTestBase
A standardized base class for Examples tests.

Namespace

Drupal\Tests\examples\Functional

Code

protected function setUp() {
  parent::setUp();

  // Add the system menu blocks to appropriate regions.
  $this
    ->setupExamplesMenus();
}