You are here

public function ClockConfigureTestCase::testClockInterfaceUserTimezone in Clock 6

File

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

Class

ClockConfigureTestCase

Code

public function testClockInterfaceUserTimezone() {
  $this
    ->drupalGet('admin/build/block/configure/clock/clock');
  $this
    ->assertText('User time zone', 'Make sure the "User time zone" setting is available when user time zones are enabled.');
  $edit = array();
  $edit['configurable_timezones'] = '0';
  $this
    ->drupalPost('admin/settings/date-time', $edit, 'Save configuration');
  $this
    ->drupalGet('admin/build/block/configure/clock/clock');
  $this
    ->assertNoText('User time zone', 'Make sure the "User time zone" setting is not available when user time zones are disabled.');
}