From 8f8cdb619727a2b3a511630e72522b88a3f24747 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 9 Nov 2008 05:38:50 +0000 Subject: Further rollback of patch #74645 - hunk got skipped for some reason. --- modules/simpletest/tests/file.test | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'modules') diff --git a/modules/simpletest/tests/file.test b/modules/simpletest/tests/file.test index e383defca..564ecea35 100644 --- a/modules/simpletest/tests/file.test +++ b/modules/simpletest/tests/file.test @@ -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. */ -- cgit v1.2.3