You are here

public function FeedsSchedulerTestCase::setUp in Feeds 7

Set up test.

Overrides DrupalWebTestCase::setUp

File

tests/feeds_scheduler.test, line 30
Feeds tests.

Class

FeedsSchedulerTestCase
Test cron scheduling.

Code

public function setUp() {
  parent::setUp('feeds', 'feeds_ui', 'ctools', 'job_scheduler');
  $this
    ->loginAdmin();
  $this
    ->createImporterConfiguration();
  $this
    ->addMappings('syndication', array(
    array(
      'source' => 'title',
      'target' => 'title',
      'unique' => FALSE,
    ),
    array(
      'source' => 'description',
      'target' => 'body',
      'unique' => FALSE,
    ),
    array(
      'source' => 'timestamp',
      'target' => 'created',
      'unique' => FALSE,
    ),
    array(
      'source' => 'url',
      'target' => 'url',
      'unique' => TRUE,
    ),
    array(
      'source' => 'guid',
      'target' => 'guid',
      'unique' => TRUE,
    ),
  ));
}