Change record status: 
Project: 
Introduced in branch: 
7.x, 8.x
Introduced in version: 
7.12
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 = TRUE once setUp() is complete.
  • DrupalWebTestCase::setUp(), DrupalUnitTestCase::setUp(), and UpgradePathTestCase::setUp() already set this flag.
  • If your test does not call any of the above three methods, you will need to set $this->setup = TRUE in your test. This does not affect most tests.
Impacts: 
Module developers