You are here

public function FeedsTamperUIWebTestCase::setTamperPluginWeight in Feeds Tamper 6

Same name and namespace in other branches
  1. 8.2 legacy/feeds_tamper_ui/tests/feeds_tamper_ui.test \FeedsTamperUIWebTestCase::setTamperPluginWeight()
  2. 7 feeds_tamper_ui/tests/feeds_tamper_ui.test \FeedsTamperUIWebTestCase::setTamperPluginWeight()

Overrides FeedsTamperWebTestHelper::setTamperPluginWeight

1 call to FeedsTamperUIWebTestCase::setTamperPluginWeight()
FeedsTamperUIWebTestCase::testBasic in feeds_tamper_ui/tests/feeds_tamper_ui.test

File

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

Class

FeedsTamperUIWebTestCase
Test Feeds Tamper UI.

Code

public function setTamperPluginWeight($importer_id, $source, $id, $weight) {
  $url = FEEDS_TAMPER_UI_BASE . '/list/' . $importer_id;
  $name = $source . '[table][' . $id . '][weight]';
  $this
    ->drupalPost($url, array(
    $name => $weight,
  ), 'Save');
  $this
    ->assertFieldByName($name, $weight);
  $this
    ->assertText('Your changes have been saved.');
}