You are here

public function FeedsUIUserInterfaceTestCase::testWarningImportOnSubmissionTurnedOffAndProcessInBackgroundTurnedOn in Feeds 7.2

Tests if the user is warned when having "Import on submission" turned off, "Process in background" turned on and using the standalone form.

File

feeds_ui/feeds_ui.test, line 240
Tests for Feeds Admin UI module.

Class

FeedsUIUserInterfaceTestCase
Test basic Feeds UI functionality.

Code

public function testWarningImportOnSubmissionTurnedOffAndProcessInBackgroundTurnedOn() {

  // Create an importer.
  $this
    ->createImporterConfiguration('Test feed', 'test_feed');
  $this
    ->setSettings('test_feed', NULL, array(
    'content_type' => '',
    'import_on_create' => FALSE,
    'process_in_background' => TRUE,
  ));

  // Assert error message.
  $this
    ->assertText(t('Since "@import_on_create" is turned off and the importer is not attached to a content type, the "@process_in_background" setting may have no effect. When submitting the standalone form with the "@import_on_create" setting turned off, the feed is only scheduled for periodic import.', array(
    '@import_on_create' => t('Import on submission'),
    '@process_in_background' => t('Process in background'),
  )));
}