From 7336ba40d5a9c36cc746b00e59a3e25ad6e1e77e Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Thu, 17 Nov 2016 02:13:02 +0100 Subject: [PATCH] MDL-57015 tests: Use preventResetByRollback() if test uses transactions --- admin/tool/lpmigrate/tests/processor_test.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/admin/tool/lpmigrate/tests/processor_test.php b/admin/tool/lpmigrate/tests/processor_test.php index 792a902962b..78eb45b9d23 100644 --- a/admin/tool/lpmigrate/tests/processor_test.php +++ b/admin/tool/lpmigrate/tests/processor_test.php @@ -396,12 +396,8 @@ class tool_lpmigrate_framework_processor_testcase extends advanced_testcase { } public function test_permission_exception() { - global $DB; - if ($DB->get_dbfamily() === 'postgres' or $DB->get_dbfamily() === 'mssql') { - $this->markTestSkipped('The processor is having issues with the transaction initialised in ' - . 'advanced_testcase::runBare().'); - return; - } + + $this->preventResetByRollback(); // Test uses transactions, so we cannot use them for speedy reset. $dg = $this->getDataGenerator(); $u = $dg->create_user(); -- 2.43.0