From d47ab77123b9386c27196e66071ea7e4d4f492e2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 24 Oct 2017 10:02:33 +0200 Subject: [PATCH] Check module is on --- test/phpunit/SupplierProposalTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/phpunit/SupplierProposalTest.php b/test/phpunit/SupplierProposalTest.php index 757449af8bc..ee4729ed47f 100644 --- a/test/phpunit/SupplierProposalTest.php +++ b/test/phpunit/SupplierProposalTest.php @@ -81,6 +81,8 @@ class SupplierProposalTest extends PHPUnit_Framework_TestCase global $conf,$user,$langs,$db; $db->begin(); // This is to have all actions inside a transaction even if test launched without suite. + if (empty($conf->global->MAIN_MODULE_SUPPLIERPROPOSAL)) { print "\n".__METHOD__." module Supplier proposal must be enabled.\n"; die(); } + print __METHOD__."\n"; }