From b9b28e31f4f495de618cd3dde9b0f73208866c73 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Fri, 17 May 2024 09:50:50 +0200 Subject: [PATCH] :white_check_mark: Fix false positive when there is a data/production-modules folder --- tests/php-unit-tests/unitary-tests/setup/DBBackupDataTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/php-unit-tests/unitary-tests/setup/DBBackupDataTest.php b/tests/php-unit-tests/unitary-tests/setup/DBBackupDataTest.php index 1952c2c84..4d1f6342f 100644 --- a/tests/php-unit-tests/unitary-tests/setup/DBBackupDataTest.php +++ b/tests/php-unit-tests/unitary-tests/setup/DBBackupDataTest.php @@ -40,6 +40,9 @@ class DBBackupDataTest extends ItopDataTestCase if (file_exists(APPROOT.'/data/'.$this->GetTestEnvironment().'.delta.xml')) { $aExpectedFiles[] = $sTmpDir . '/' . 'delta.xml'; } + if (file_exists(APPROOT.'/data/'.$this->GetTestEnvironment().'-modules')) { + $aExpectedFiles[] = $sTmpDir . '/' . $this->GetTestEnvironment() . '-modules'; + } foreach ($aExtraFiles as $sRelFile => $bExists) { if ($bExists) { $aExpectedFiles[] = $sTmpDir . '/' . $sRelFile;