1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-15 02:57:15 +02:00

get_files() fix.

This commit is contained in:
Cameron
2020-12-26 12:02:52 -08:00
parent c9ce6e1bd0
commit 30ac723fa2
3 changed files with 46 additions and 49 deletions

View File

@@ -346,6 +346,9 @@
$result = $this->dta->get_current_table('core');
$this->assertSame($result,$expected);
}

View File

@@ -421,6 +421,13 @@ class e_fileTest extends \Codeception\Test\Unit
$this->assertNotContains('style.css', $files);
// test folder with ony a folder inside. (no files)
$publicFilter = array('_FT', '^thumbs\.db$','^Thumbs\.db$','.*\._$','^\.htaccess$','^\.cvsignore$','^\.ftpquota$','^index\.html$','^null\.txt$','\.bak$','^.tmp'); // Default file filter (regex format)
$result = $this->fl->get_files(e_DOCS,'',$publicFilter);
$expected = array();
$this->assertSame($expected, $result);
}
/*
public function testGetUserDir()