You are here

function PHPMailerUnitTestCase::setUp in PHPMailer 7.3

Same name and namespace in other branches
  1. 7.4 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');
}