You are here

public function FeedsRulesTest::setUp in Feeds 7.2

Set up test.

Overrides FeedsWebTestCase::setUp

File

tests/feeds_rules.test, line 28
Contains FeedsRulesTest.

Class

FeedsRulesTest
Tests for Rules integration.

Code

public function setUp() {
  parent::setUp(array(
    'rules',
  ));

  // Create an importer configuration.
  $this
    ->createImporterConfiguration('Node import', 'node');
  $this
    ->setSettings('node', NULL, array(
    'content_type' => '',
  ));
  $this
    ->setPlugin('node', 'FeedsHTTPFetcher');
  $this
    ->setPlugin('node', 'FeedsCSVParser');
  $this
    ->addMappings('node', array(
    0 => array(
      'source' => 'title',
      'target' => 'title',
      'unique' => FALSE,
    ),
    1 => array(
      'source' => 'guid',
      'target' => 'guid',
      'unique' => TRUE,
    ),
  ));

  // Clear static cache to make dynamic events available to Rules.
  drupal_static_reset();
}