You are here

function NotificationsTemplatesTests::setUp in Notifications 7

Same name and namespace in other branches
  1. 6.4 tests/notifications_templates.test \NotificationsTemplatesTests::setUp()
  2. 6 tests/notifications_templates.test \NotificationsTemplatesTests::setUp()
  3. 6.2 tests/notifications_templates.test \NotificationsTemplatesTests::setUp()
  4. 6.3 tests/notifications_templates.test \NotificationsTemplatesTests::setUp()

Set up some required modules

Overrides NotificationsTestCase::setUp

File

tests/notifications_templates.test, line 16

Class

NotificationsTemplatesTests
Class for testing notifications templates and message composition.

Code

function setUp() {
  parent::setUp('messaging_simple', 'notifications_digest', 'notifications_content');

  // Set some defaults
  // Default send interval will be: immediately
  variable_set('notifications_default_send_interval', 0);
  variable_set('notifications_default_send_method', 'debug');

  // Set fake site name for comparison after token replacement
  variable_set('site_name', 'Test Site');
}