function MailTestCase::setUp

Overrides DrupalWebTestCase::setUp

File

modules/simpletest/tests/mail.test, line 24

Class

MailTestCase
@file Test the Drupal mailing system.

Code

function setUp() {
    parent::setUp(array(
        'simpletest',
    ));
    // Set MailTestCase (i.e. this class) as the SMTP library
    variable_set('mail_system', array(
        'default-system' => 'MailTestCase',
    ));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.