You are here

public function FeedsUnitTestHelper::setUp in Feeds 6

Same name and namespace in other branches
  1. 7.2 tests/feeds.test \FeedsUnitTestHelper::setUp()

Sets up unit test environment.

Unlike DrupalWebTestCase::setUp(), DrupalUnitTestCase::setUp() does not install modules because tests are performed without accessing the database. Any required files must be explicitly included by the child class setUp() method.

Overrides DrupalUnitTestCase::setUp

File

tests/feeds.test, line 364
Common functionality for all Feeds tests.

Class

FeedsUnitTestHelper
Provides a wrapper for DrupalUnitTestCase for Feeds unit testing.

Code

public function setUp() {
  parent::setUp();

  // Manually include the feeds module.
  // @todo Allow an array of modules from the child class.
  drupal_load('module', 'feeds');
}