N°5608 - Rename unit tests dirs "sources/application" to match counter-part dirs name

This commit is contained in:
Molkobain
2023-01-18 16:06:21 +01:00
parent 34688c2bf6
commit 9be167cf5e
15 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,40 @@
<?php
/*
* @copyright Copyright (C) 2010-2021 Combodo SARL
* @license http://opensource.org/licenses/AGPL-3.0
*/
namespace Combodo\iTop\Test\UnitTest\Application\Helper;
use Combodo\iTop\Application\Helper\WebResourcesHelper;
use Combodo\iTop\Test\UnitTest\ItopTestCase;
/**
* @runTestsInSeparateProcesses
* @preserveGlobalState disabled
* @backupGlobals disabled
* @covers \WebPage
*/
class WebResourcesHelperTest extends ItopTestCase
{
/**
* @dataProvider CheckFilesExistProvider
* @param string $sMethodName
*/
public function testCheckFilesExist($sMethodName)
{
$aFilesRelPaths = WebResourcesHelper::$sMethodName();
foreach ($aFilesRelPaths as $sFileRelPath) {
$this->assertTrue(file_exists(APPROOT.$sFileRelPath), $sMethodName.' method returns a non existing file: '.$sFileRelPath);
}
}
public function CheckFilesExistProvider(): array
{
return [
'GetJSFilesRelPathsForCKEditor' => ['GetJSFilesRelPathsForCKEditor'],
'GetCSSFilesRelPathsForC3JS' => ['GetCSSFilesRelPathsForC3JS'],
'GetJSFilesRelPathsForC3JS' => ['GetJSFilesRelPathsForC3JS'],
];
}
}