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:
parent
d83c31fb8c
commit
bdc5c20df2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user