public function FeedsTamperUIWebTestCase::toggleTamperPlugin in Feeds Tamper 6
Same name and namespace in other branches
- 8.2 legacy/feeds_tamper_ui/tests/feeds_tamper_ui.test \FeedsTamperUIWebTestCase::toggleTamperPlugin()
- 7 feeds_tamper_ui/tests/feeds_tamper_ui.test \FeedsTamperUIWebTestCase::toggleTamperPlugin()
2 calls to FeedsTamperUIWebTestCase::toggleTamperPlugin()
- FeedsTamperUIWebTestCase::testBasic in feeds_tamper_ui/
tests/ feeds_tamper_ui.test - FeedsTamperUIWebTestCase::_testCSV in feeds_tamper_ui/
tests/ feeds_tamper_ui.test
File
- feeds_tamper_ui/
tests/ feeds_tamper_ui.test, line 226 - Tests for feeds_tamper_ui.module.
Class
- FeedsTamperUIWebTestCase
- Test Feeds Tamper UI.
Code
public function toggleTamperPlugin($importer_id, $source, $id, $enable = FALSE) {
$url = FEEDS_TAMPER_UI_BASE . '/list/' . $importer_id;
$name = $source . '[table][' . $id . '][enabled]';
$this
->drupalPost($url, array(
$name => $enable,
), 'Save');
$this
->assertFieldByName($name, $enable);
$this
->assertText('Your changes have been saved.');
}