You are here

public function ClockBlockTestCase::testClockInterfaceUserTimezone in Clock 7

File

./clock.test, line 96
Tests for Clock module.

Class

ClockBlockTestCase
@file Tests for Clock module.

Code

public function testClockInterfaceUserTimezone() {
  variable_set('configurable_timezones', 1);
  $this
    ->drupalGet('admin/structure/block/manage/clock/clock/configure');
  $this
    ->assertText('User time zone', "Make sure the 'User time zone' setting is available when user time zones are enabled.");
  variable_set('configurable_timezones', 0);
  $this
    ->drupalGet('admin/structure/block/manage/clock/clock/configure');
  $this
    ->assertNoText('User time zone', "Make sure the 'User time zone' setting is not available when user time zones are disabled.");
}