Bug #27379

add check to clear the database at tearDown in testing

Added by Fernando Arconada about 10 years ago. Updated over 9 years ago.

Status:
Needs Feedback
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-06-12
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

Actually in testing mode the database is cleared completely in static public function tearDownAfterClass() at the end of testing. You dont always want this behaviour, so please add a check in settings to enable this

#2

Updated by Christian Müller over 9 years ago

  • Status changed from New to Needs Feedback
  • Has patch set to No

For me the current behaviour makes sense, as you want a cleanly defined state for the DB in testing. What would be a use-case against that?

Also available in: Atom PDF