You are here

public function MaillogTestCase::loginAdminUser in Maillog / Mail Developer 7

Log into the site as an admin user.

4 calls to MaillogTestCase::loginAdminUser()
MaillogTestCase::testBodyXss in tests/MaillogTestCase.test
Confirm that it is not possible to create XSS attacks via an email body.
MaillogTestCase::testDeletePageSecurity in tests/MaillogTestCase.test
Confirm that the 'delete' pages are not able to delete messages.
MaillogTestCase::testLogging in tests/MaillogTestCase.test
Tests logging mail with maillog module.
MaillogTestCase::testSubjectXss in tests/MaillogTestCase.test
Confirm that it is not possible to create XSS attacks via an email subject.

File

tests/MaillogTestCase.test, line 305
Unit-ish tests for the Maillog module.

Class

MaillogTestCase
All unit tests for the module.

Code

public function loginAdminUser() {
  $user = $this
    ->createAdminUser();
  $this
    ->drupalLogin($user);
}