|
|
@ -146,18 +146,18 @@ class GeneralTest extends \Tests\Browser\TestCase
|
|
|
|
$browser->assertCheckboxState('_pretty_date', $this->settings['pretty_date']);
|
|
|
|
$browser->assertCheckboxState('_pretty_date', $this->settings['pretty_date']);
|
|
|
|
$browser->assertCheckboxState('_display_next', $this->settings['display_next']);
|
|
|
|
$browser->assertCheckboxState('_display_next', $this->settings['display_next']);
|
|
|
|
$browser->assertCheckboxState('_standard_windows', $this->settings['standard_windows']);
|
|
|
|
$browser->assertCheckboxState('_standard_windows', $this->settings['standard_windows']);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// Assert the options have been saved in database properly
|
|
|
|
// Assert the options have been saved in database properly
|
|
|
|
$prefs = \bootstrap::get_prefs();
|
|
|
|
$prefs = \bootstrap::get_prefs();
|
|
|
|
$options = array_diff(array_keys($this->settings), ['refresh_interval', 'pretty_date']);
|
|
|
|
$options = array_diff(array_keys($this->settings), ['refresh_interval', 'pretty_date']);
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($options as $option) {
|
|
|
|
foreach ($options as $option) {
|
|
|
|
$this->assertEquals($this->settings[$option], $prefs[$option]);
|
|
|
|
$this->assertEquals($this->settings[$option], $prefs[$option]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$this->assertEquals($this->settings['pretty_date'], $prefs['prettydate']);
|
|
|
|
$this->assertEquals($this->settings['pretty_date'], $prefs['prettydate']);
|
|
|
|
$this->assertEquals($this->settings['refresh_interval'], $prefs['refresh_interval']/60);
|
|
|
|
$this->assertEquals($this->settings['refresh_interval'], $prefs['refresh_interval']/60);
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|