1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-29 10:38:08 +01:00

pluginsTest::testPluginScripts(): Standard sort file order

This commit is contained in:
Nick Liu 2021-04-16 15:46:14 -05:00
parent d83c31fb8c
commit bdc5c20df2
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637

View File

@ -133,6 +133,15 @@
}
public function testSortOrderPeriodUnderscore()
{
$expected = ['banner.php', 'banner_menu.php'];
$input = ['banner_menu.php', 'banner.php'];
sort($input);
$this->assertEquals($expected, $input);
}
public function testPluginScripts()
{
@ -165,6 +174,8 @@
$files = scandir($path);
unset($files[0], $files[1]); // . and ..
sort($files);
if(!empty($focus) && !isset($focus[$plug]))
{
continue;