You are here

protected function FeedsTamperUIWebTestCase::toggleTamperPlugin in Feeds Tamper 7

Same name and namespace in other branches
  1. 8.2 legacy/feeds_tamper_ui/tests/feeds_tamper_ui.test \FeedsTamperUIWebTestCase::toggleTamperPlugin()
  2. 6 feeds_tamper_ui/tests/feeds_tamper_ui.test \FeedsTamperUIWebTestCase::toggleTamperPlugin()
1 call to FeedsTamperUIWebTestCase::toggleTamperPlugin()
FeedsTamperUIWebTestCase::testBasic in feeds_tamper_ui/tests/feeds_tamper_ui.test

File

feeds_tamper_ui/tests/feeds_tamper_ui.test, line 241
Tests for feeds_tamper_ui.module.

Class

FeedsTamperUIWebTestCase
Test Feeds Tamper UI.

Code

protected function toggleTamperPlugin($importer_id, $delta, $id, $enable = FALSE) {
  $url = 'admin/structure/feeds/' . $importer_id . '/tamper';
  $name = $delta . '[table][' . $id . '][enabled]';
  $this
    ->drupalPost($url, array(
    $name => $enable,
  ), 'Save');
  $this
    ->assertFieldByName($name, $enable);
  $this
    ->assertText('Your changes have been saved.');
}