By xjm on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
7.x, 8.x
Introduced in version:
7.12
Issue links:
Description:
- A setup completion flag has been added to the automated testing system to prevent database tables from being deleted when a test is not set up properly.
- Every test needs to have the flag
$this->setup = TRUEoncesetUp()is complete. DrupalWebTestCase::setUp(),DrupalUnitTestCase::setUp(), andUpgradePathTestCase::setUp()already set this flag.- If your test does not call any of the above three methods, you will need to set
$this->setup = TRUEin your test. This does not affect most tests.
Impacts:
Module developers