From c025a7aa3bc62d7d79d8b4b24c8f92241ea48e2f Mon Sep 17 00:00:00 2001 From: Molkobain Date: Tue, 14 Sep 2021 15:08:08 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B03685=20-=20Add=20unit=20test=20for=20Web?= =?UTF-8?q?ResourcesHelper?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Helper/WebResourcesHelperTest.php | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 test/sources/application/Helper/WebResourcesHelperTest.php diff --git a/test/sources/application/Helper/WebResourcesHelperTest.php b/test/sources/application/Helper/WebResourcesHelperTest.php new file mode 100644 index 000000000..f9cffcf84 --- /dev/null +++ b/test/sources/application/Helper/WebResourcesHelperTest.php @@ -0,0 +1,39 @@ +assertTrue(file_exists(APPROOT.$sFileRelPath), $sMethodName.' method returns a non existing file: '.$sFileRelPath); + } + } + + public function CheckFilesExistProvider(): array + { + return [ + 'GetJSFilesRelPathsForCKEditor' => ['GetJSFilesRelPathsForCKEditor'], + 'GetCSSFilesRelPathsForC3JS' => ['GetCSSFilesRelPathsForC3JS'], + 'GetJSFilesRelPathsForC3JS' => ['GetJSFilesRelPathsForC3JS'], + ]; + } +}