You are here

public function FeedsUnitTestHelper::setUp in Feeds 7.2

Same name and namespace in other branches
  1. 6 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

1 call to FeedsUnitTestHelper::setUp()
FeedsHTTPRequestTestCase::setUp in tests/http_request.test
Sets up unit test environment.
1 method overrides FeedsUnitTestHelper::setUp()
FeedsHTTPRequestTestCase::setUp in tests/http_request.test
Sets up unit test environment.

File

tests/feeds.test, line 776
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');
}