You are here

public function feedsDrushTest::setUp in Feeds 7.2

File

tests/drush/feedsDrushTest.php, line 24

Class

feedsDrushTest
Tests Drush integration for Feeds. Based on Drush 8.

Namespace

Unish

Code

public function setUp() {
  if (UNISH_DRUPAL_MAJOR_VERSION != 7) {
    $this
      ->markTestSkipped('This version of Feeds is for D7.');
  }

  // Install the standard install profile.
  $site = $this
    ->setUpDrupal(1, TRUE, UNISH_DRUPAL_MAJOR_VERSION, 'standard');
  $root = $this
    ->webroot();
  $this->siteOptions = array(
    'root' => $root,
    'uri' => key($site),
    'yes' => NULL,
  );

  // Copy the local Feeds directory to the test directory.
  $this
    ->copyLocalFeedsDirToTestDir();

  // Enable the feeds_import module.
  $this
    ->execDrush('pm-enable', array(
    'feeds',
  ));
  $this
    ->execDrush('pm-enable', array(
    'feeds_import',
  ));
}