summaryrefslogtreecommitdiff
path: root/modules/simpletest/simpletest.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-05-10 06:38:23 +0000
committerDries Buytaert <dries@buytaert.net>2010-05-10 06:38:23 +0000
commitc240ea574fcdf96cc8ffaa9775708dd380dce59b (patch)
tree7bf0717d618190d7d72815e0f28697ca8fe6f648 /modules/simpletest/simpletest.test
parentd91bb3a3a9fd9bad499f3f66712250fe3a65d5fb (diff)
downloadbrdo-c240ea574fcdf96cc8ffaa9775708dd380dce59b.tar.gz
brdo-c240ea574fcdf96cc8ffaa9775708dd380dce59b.tar.bz2
- Patch #654752 by sndev, Berdir, jrbeeman: file_directory() needs to be set before module install.
Diffstat (limited to 'modules/simpletest/simpletest.test')
-rw-r--r--modules/simpletest/simpletest.test20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/simpletest/simpletest.test b/modules/simpletest/simpletest.test
index 11bf16ef7..8ad016579 100644
--- a/modules/simpletest/simpletest.test
+++ b/modules/simpletest/simpletest.test
@@ -416,6 +416,26 @@ class SimpleTestMailCaptureTestCase extends DrupalWebTestCase {
}
/**
+ * Test Folder creation
+ */
+class SimpleTestFolderTestCase extends DrupalWebTestCase {
+ public static function getInfo() {
+ return array(
+ 'name' => 'Testing SimpleTest setUp',
+ 'description' => "This test will check SimpleTest's treatment of hook_install during setUp. Image module is used for test.",
+ 'group' => 'SimpleTest',
+ );
+ }
+
+ function testFolderSetup() {
+ if (module_exists('image')) {
+ $path = file_directory_path() . '/styles';
+ $this->assertTrue(file_prepare_directory($path, FALSE), "Directory created.");
+ }
+ }
+}
+
+/**
* Test required modules for tests.
*/
class SimpleTestMissingDependentModuleUnitTest extends DrupalUnitTestCase {