MDL-60978 testing: Support ability to run phpunit in isolated process

This commit is contained in:
Andrew Nicols
2019-06-21 14:36:13 +08:00
parent 3cb2c5657a
commit af1a436b2b
6 changed files with 64 additions and 35 deletions
+4
View File
@@ -539,6 +539,10 @@ class core_phpunit_advanced_testcase extends advanced_testcase {
* @depends test_message_redirection
*/
public function test_message_redirection_noreset($sink) {
if ($this->isInIsolation()) {
$this->markTestSkipped('State cannot be carried over between tests in isolated tests');
}
$this->preventResetByRollback(); // Messaging is not compatible with transactions...
$this->resetAfterTest();