diff options
Diffstat (limited to 'modules/aggregator/aggregator.test')
-rw-r--r-- | modules/aggregator/aggregator.test | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/aggregator/aggregator.test b/modules/aggregator/aggregator.test index 0d1e31ba5..b224b7938 100644 --- a/modules/aggregator/aggregator.test +++ b/modules/aggregator/aggregator.test @@ -284,6 +284,38 @@ EOF; } } +/** + * Tests aggregator configuration settings. + */ +class AggregatorConfigurationTestCase extends AggregatorTestCase { + public static function getInfo() { + return array( + 'name' => 'Aggregator configuration', + 'description' => 'Test aggregator settings page.', + 'group' => 'Aggregator', + ); + } + + /** + * Tests the settings form to ensure the correct default values are used. + */ + function testSettingsPage() { + $edit = array( + 'aggregator_allowed_html_tags' => '<a>', + 'aggregator_summary_items' => 10, + 'aggregator_clear' => 3600, + 'aggregator_category_selector' => 'select', + 'aggregator_teaser_length' => 200, + ); + $this->drupalPost('admin/config/services/aggregator/settings', $edit, t('Save configuration')); + $this->assertText(t('The configuration options have been saved.')); + + foreach ($edit as $name => $value) { + $this->assertFieldByName($name, $value, t('"@name" has correct default value.', array('@name' => $name))); + } + } +} + class AddFeedTestCase extends AggregatorTestCase { public static function getInfo() { return array( |