diff options
Diffstat (limited to 'modules/simpletest/simpletest.test')
-rw-r--r-- | modules/simpletest/simpletest.test | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/simpletest/simpletest.test b/modules/simpletest/simpletest.test index a4ee6741e..31046392c 100644 --- a/modules/simpletest/simpletest.test +++ b/modules/simpletest/simpletest.test @@ -382,3 +382,25 @@ class SimpleTestMailCaptureTestCase extends DrupalWebTestCase { $this->assertEqual(count($captured_emails), 2, t('All e-mails with the same id are returned when filtering by id.'), t('E-mail')); } } + +/** + * Test required modules for tests. + */ +class SimpleTestMissingDependentModuleUnitTest extends DrupalUnitTestCase { + public static function getInfo() { + return array( + 'title' => 'Testing dependent module test', + 'description' => 'This test should not load since it requires a module that is not found.', + 'group' => 'SimpleTest', + 'dependencies' => array('simpletest_missing_module'), + ); + } + + /** + * Ensure that this test will not be loaded despite its dependency. + */ + function testFail() { + $this->fail(t('Running test with missing required module.')); + } +} + |