You are here

public function FeedsWebTestCase::setSettings in Feeds 7

Same name and namespace in other branches
  1. 6 tests/feeds.test \FeedsWebTestCase::setSettings()
  2. 7.2 tests/feeds.test \FeedsWebTestCase::setSettings()

Set importer or plugin settings.

Parameters

$id: The importer configuration's id.

$plugin: The plugin (class) name, or NULL to set importer's settings

$settings: The settings to set.

9 calls to FeedsWebTestCase::setSettings()
FeedsCSVtoUsersTest::test in tests/feeds_processor_user.test
Test node creation, refreshing/deleting feeds and feed items.
FeedsMapperContentTestCase::test in tests/feeds_mapper_content.test
Basic test loading a doulbe entry CSV file.
FeedsMapperDateTestCase::test in tests/feeds_mapper_date.test
Basic test loading a single entry CSV file.
FeedsMapperEmfieldTestCase::test in tests/feeds_mapper_emfield.test
Basic test loading a doulbe entry CSV file.
FeedsMapperFileFieldTestCase::test in tests/feeds_mapper_filefield.test
Basic test loading a single entry CSV file.

... See full list

File

tests/feeds.test.inc, line 138
Common functionality for all Feeds tests.

Class

FeedsWebTestCase
Test basic Data API functionality.

Code

public function setSettings($id, $plugin, $settings) {
  $this
    ->drupalPost('admin/structure/feeds/edit/' . $id . '/settings/' . $plugin, $settings, 'Save');
  $this
    ->assertText('Your changes have been saved.');
}