From e07ae94cd20b30eaf03f31b7ac07d97a4a1d0d44 Mon Sep 17 00:00:00 2001 From: Daniel Thee Roperto Date: Wed, 19 Oct 2016 11:45:14 +1100 Subject: [PATCH] Fixed PHPUnit table problem after uninstalling plugin. --- tests/phpunit/installation_test.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/phpunit/installation_test.php b/tests/phpunit/installation_test.php index 9b3708d..5139642 100644 --- a/tests/phpunit/installation_test.php +++ b/tests/phpunit/installation_test.php @@ -82,5 +82,9 @@ class installation_test extends auth_outage_base_testcase { 'Maintenance later must not be set.'); // Issue #57. self::assertFalse($dbman->table_exists('auth_outage'), 'Table "auth_outage" was not dropped.'); + + // Create tables back so tests do not fail with MySQL ... + require_once($CFG->libdir.'/upgradelib.php'); + $DB->get_manager()->install_from_xmldb_file($CFG->dirroot.'/auth/outage/db/install.xml'); } }