summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsun2012-08-08 17:01:17 (GMT)
committer sun2012-08-08 17:01:17 (GMT)
commit4fe984acc3d90e8f3e38e2ec7b42dbb74cc96777 (patch)
treec732560150a724dee1c3322c0993f687c098b362
parentdd5f2c15922f4af54da0131811f5dbe3fc5b6776 (diff)
Fixed run-tests.sh throws fatal error when PHPMailer module is not installed.
-rw-r--r--tests/phpmailer.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/phpmailer.test b/tests/phpmailer.test
index 48a78ef..3104376 100644
--- a/tests/phpmailer.test
+++ b/tests/phpmailer.test
@@ -14,6 +14,11 @@ class PHPMailerUnitTestCase extends DrupalUnitTestCase {
);
}
+ function setUp() {
+ parent::setUp();
+ drupal_load('module', 'phpmailer');
+ }
+
/**
* Test e-mail address extraction using phpmailer_parse_address().
*/