protected function FeedsUIUserInterfaceTestCase::doEditFeedsConfiguration in Feeds 7.2
Edits an importer configuration.
Parameters
string $name: The natural name of the feed.
string $id: The persistent id of the feed.
2 calls to FeedsUIUserInterfaceTestCase::doEditFeedsConfiguration()
- FeedsUIUserInterfaceTestCase::testEditDisabledImporter in feeds_ui/
feeds_ui.test - UI functionality tests on disabled feeds.
- FeedsUIUserInterfaceTestCase::testEditFeedConfiguration in feeds_ui/
feeds_ui.test - UI functionality tests on feeds_ui_overview(), feeds_ui_create_form(), Change plugins on feeds_ui_edit_page().
File
- feeds_ui/
feeds_ui.test, line 402 - Tests for Feeds Admin UI module.
Class
- FeedsUIUserInterfaceTestCase
- Test basic Feeds UI functionality.
Code
protected function doEditFeedsConfiguration($name = 'Syndication', $id = 'syndication') {
// Assert UI elements.
$this
->drupalGet('admin/structure/feeds/' . $id);
$this
->assertText($name);
$this
->assertText('Basic settings');
$this
->assertText('Fetcher');
$this
->assertText('HTTP Fetcher');
$this
->assertText('Parser');
$this
->assertText('Common syndication parser');
$this
->assertText('Processor');
$this
->assertText('Node processor');
$this
->assertText('Getting started');
$this
->assertRaw('admin/structure/feeds/' . $id . '/settings');
$this
->assertRaw('admin/structure/feeds/' . $id . '/settings/FeedsNodeProcessor');
$this
->assertRaw('admin/structure/feeds/' . $id . '/fetcher');
$this
->assertRaw('admin/structure/feeds/' . $id . '/parser');
$this
->assertRaw('admin/structure/feeds/' . $id . '/processor');
}