From 527cd1f922c396144dbe967c071e11f111edf205 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 26 Dec 2022 15:25:36 +0100 Subject: [PATCH] Fix phpunit --- test/phpunit/RepositoryTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/phpunit/RepositoryTest.php b/test/phpunit/RepositoryTest.php index 4185a46b5b1..357ee28aa8d 100644 --- a/test/phpunit/RepositoryTest.php +++ b/test/phpunit/RepositoryTest.php @@ -169,14 +169,14 @@ class RepositoryTest extends PHPUnit\Framework\TestCase global $conf,$user,$langs,$db; // Scan dir to guarante we don't have library jquery twice - $founddirs=dol_dir_list(DOL_DOCUMENT_ROOT.'/includes/', 'files', 1, '^jquery\.js', array('ckeditor')); - print __METHOD__." count(founddirs)=".count($founddirs)."\n"; - $this->assertEquals(1, count($founddirs), 'We found jquery lib (jquery.js) twice'); + $foundfiles=dol_dir_list(DOL_DOCUMENT_ROOT.'/includes/', 'files', 1, '^jquery\.js', array('ckeditor')); + print __METHOD__." count(founddirs)=".count($foundfiles)."\n"; + $this->assertEquals(1, count($foundfiles), 'We found jquery lib (jquery.js) twice'); // Scan dir to guarante we don't have library jquery twice - $founddirs=dol_dir_list(DOL_DOCUMENT_ROOT.'/includes/', 'files', 1, '^jquery\.min\.js', array('ckeditor')); - print __METHOD__." count(founddirs)=".count($founddirs)."\n"; - $this->assertEquals(1, count($founddirs), 'We found jquery lib (jquery.min.js) twice'); + $foundfiles=dol_dir_list(DOL_DOCUMENT_ROOT.'/includes/', 'files', 1, '^jquery\.min\.js', array('ckeditor')); + print __METHOD__." count(founddirs)=".count($foundfiles)."\n"; + $this->assertEquals(1, count($foundfiles), 'We found jquery lib (jquery.min.js) twice '.$foundfiles[0]['fullname'].' + '.$foundfiles[1]['fullname']); }