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:
@@ -346,6 +346,9 @@
|
||||
|
||||
$result = $this->dta->get_current_table('core');
|
||||
|
||||
|
||||
|
||||
|
||||
$this->assertSame($result,$expected);
|
||||
|
||||
}
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user