Commit aeaeb17c authored by Dries's avatar Dries

- Patch #312316 by Aron Novak: extend aggregator module tests.

parent 72e81af1
......@@ -276,11 +276,16 @@ class UpdateFeedTestCase extends AggregatorTestCase {
* Create a feed and attempt to update it.
*/
function testUpdateFeed() {
$remamining_fields = array('title', 'url', '');
foreach ($remamining_fields as $same_field) {
$feed = $this->createFeed();
// Get new feed data array and modify newly created feed.
$edit = $this->getFeedEditArray();
$edit['refresh'] = 1800; // Change refresh value.
if (isset($feed->{$same_field})) {
$edit[$same_field] = $feed->{$same_field};
}
$this->drupalPost('admin/content/aggregator/edit/feed/' . $feed->fid, $edit, t('Save'));
$this->assertRaw(t('The feed %name has been updated.', array('%name' => $edit['title'])), t('The feed %name has been updated.', array('%name' => $edit['title'])));
......@@ -297,6 +302,7 @@ class UpdateFeedTestCase extends AggregatorTestCase {
$feed->title = $edit['title']; // Set correct title so deleteFeed() will work.
$this->deleteFeed($feed);
}
}
}
class RemoveFeedTestCase extends AggregatorTestCase {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment