You are here

public function UserRegisterNotifyBasicTest::testUserRegisterNotifyConfiguration in User registration notification 7

Tests if configuration is possible.

File

./user_register_notify.test, line 52
Test file for User Registration Notification module.

Class

UserRegisterNotifyBasicTest
Test basic functionality of User Registration Notification module.

Code

public function testUserRegisterNotifyConfiguration() {

  // Check if Configure link is available on 'Modules' page.
  // Requires 'administer modules' permission.
  $this
    ->drupalGet('admin/modules');
  $this
    ->assertRaw('admin/config/people/user-register-notify', '[testUserRegisterNotifyConfiguration]: Configure link from Modules page to User Registration Notification Settings page exists.');

  // Check for setting page's presence.
  $this
    ->drupalGet('admin/config/people/user-register-notify');
  $this
    ->assertRaw(t('Account notifications'), '[testUserRegisterNotifyConfiguration]: Settings page displayed.');

  // Token tree visible?
  $this
    ->assertRaw(t('Browse available tokens.'), '[testUserRegisterNotifyConfiguration]: Token tree displayed.');
}