function PHPMailerUnitTestCase::setUp in PHPMailer 7.4
Same name and namespace in other branches
- 7.3 tests/phpmailer.test \PHPMailerUnitTestCase::setUp()
Sets up unit test environment.
Unlike DrupalWebTestCase::setUp(), DrupalUnitTestCase::setUp() does not install modules because tests are performed without accessing the database. Any required files must be explicitly included by the child class setUp() method.
Overrides DrupalUnitTestCase::setUp
File
- tests/
phpmailer.test, line 27 - PHPMailer tests.
Class
- PHPMailerUnitTestCase
- Class for testing the PHPMailer module.
Code
function setUp() {
parent::setUp();
drupal_load('module', 'phpmailer');
}