Commit 8f8cdb61 authored by webchick's avatar webchick
Browse files

Further rollback of patch #74645 - hunk got skipped for some reason.

parent 2ea70d65
......@@ -541,38 +541,6 @@ class FileDirectoryTest extends FileTestCase {
}
/**
* Tests the file_scan_directory() function.
*/
class FileScanDirectoryTest extends FileTestCase {
/**
* Implementation of getInfo().
*/
function getInfo() {
return array(
'name' => t('File scan directory'),
'description' => t('Tests the file_scan_directory() function.'),
'group' => t('File'),
);
}
/**
* Check that the no-mask parameter is honored.
*/
function testNoMask() {
$path = $this->original_file_directory . '/simpletest';
// Grab a listing of all the JS files.
$all_files = file_scan_directory($path, '/javascript*/');
$this->assertEqual(2, count($all_files), t('Found two, expected javascript files.'));
// Now use the nomask parameter to filter out the .script file.
$filtered_files = file_scan_directory($path, '/javascript*/', '/.script$/');
$this->assertEqual(1, count($filtered_files), t('Filtered correctly.'));
}
}
/**
* Deletion related tests.
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment