protected function ExamplesBrowserTestBase::setUp in Examples for Developers 8
Same name and namespace in other branches
- 3.x tests/src/Functional/ExamplesBrowserTestBase.php \Drupal\Tests\examples\Functional\ExamplesBrowserTestBase::setUp()
Overrides BrowserTestBase::setUp
4 calls to ExamplesBrowserTestBase::setUp()
- CronExampleTest::setUp in cron_example/
tests/ src/ Functional/ CronExampleTest.php - ExampleFunctionalTest::setUp in 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 field_example/
tests/ src/ Functional/ FieldExampleBrowserTestBase.php - Once installed, a content type with the desired field is created.
- PagerExampleTest::setUp in pager_example/
tests/ src/ Functional/ PagerExampleTest.php
4 methods override ExamplesBrowserTestBase::setUp()
- CronExampleTest::setUp in cron_example/
tests/ src/ Functional/ CronExampleTest.php - ExampleFunctionalTest::setUp in 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 field_example/
tests/ src/ Functional/ FieldExampleBrowserTestBase.php - Once installed, a content type with the desired field is created.
- PagerExampleTest::setUp in 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\FunctionalCode
protected function setUp() {
parent::setUp();
// Add the system menu blocks to appropriate regions.
$this
->setupExamplesMenus();
}