You are here

public function FeedsWebTestBase::setSettings in Feeds 8.2

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.

19 calls to FeedsWebTestBase::setSettings()
FeedsCSVtoUsersTest::test in lib/Drupal/feeds/Tests/FeedsCSVtoUsersTest.php
Test node creation, refreshing/deleting feeds and feed items.
FeedsFileFetcherTest::testPrivateFiles in lib/Drupal/feeds/Tests/FeedsFileFetcherTest.php
Test uploading private files.
FeedsFileFetcherTest::testPublicFiles in lib/Drupal/feeds/Tests/FeedsFileFetcherTest.php
Test scheduling on cron.
FeedsMapperDateMultipleTest::test in lib/Drupal/feeds/Tests/FeedsMapperDateMultipleTest.php
Testing import by loading a 4 item XML file.
FeedsMapperDateTest::test in lib/Drupal/feeds/Tests/FeedsMapperDateTest.php
Basic test loading a single entry CSV file.

... See full list

File

lib/Drupal/feeds/Tests/FeedsWebTestBase.php, line 227
Common functionality for all Feeds tests.

Class

FeedsWebTestBase
Test basic Data API functionality.

Namespace

Drupal\feeds\Tests

Code

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