function TestBase::setUp

Performs setup tasks before each individual test method is run.

1 call to TestBase::setUp()
TestBase::run in core/modules/simpletest/src/TestBase.php
Run all tests in this class.
2 methods override TestBase::setUp()
KernelTestBase::setUp in core/modules/simpletest/src/KernelTestBase.php
Performs setup tasks before each individual test method is run.
WebTestBase::setUp in core/modules/simpletest/src/WebTestBase.php
Sets up a Drupal site for running functional and integration tests.

File

core/modules/simpletest/src/TestBase.php, line 273

Class

TestBase
Base class for Drupal tests.

Namespace

Drupal\simpletest

Code

protected abstract function setUp();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.