Flag to indicate whether the test has been set up.

The setUp() method isolates the test from the parent Backdrop site by creating a random prefix for the database and setting up a clean file storage directory. The tearDown() method then cleans up this test environment. We must ensure that setUp() has been run. Otherwise, tearDown() will act on the parent Backdrop site rather than the test environment, destroying live data.

File

core/modules/simpletest/backdrop_web_test_case.php, line 107

Class

BackdropTestCase
Base class for Backdrop tests.

Code

protected $setup = FALSE;