From 0912cd46cb324ee708936ae8b37aeaa3ea9195d3 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Wed, 20 Dec 2017 13:48:27 +0100 Subject: [PATCH] Update install test --- tests/Install/InstallTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Install/InstallTest.php b/tests/Install/InstallTest.php index b747794ea..2c1d73531 100644 --- a/tests/Install/InstallTest.php +++ b/tests/Install/InstallTest.php @@ -124,6 +124,7 @@ class InstallTest extends \PHPUnit\Framework\TestCase 'db' => $pdo, ] ); + $pdo->exec('SET FOREIGN_KEY_CHECKS=0;'); try { $DbSetup->processSQLFile(); // Setup default schema @@ -293,6 +294,7 @@ class InstallTest extends \PHPUnit\Framework\TestCase if (!$error) { @file_put_contents(NN_ROOT . '_install/install.lock', ''); $message = 'NNTmux installation completed successfully'; + $pdo->exec('SET FOREIGN_KEY_CHECKS=1;'); echo $message . PHP_EOL; } else { $message = 'NNTmux installation failed. Please fix reported problems and run this script again';