You are here

public function FeedsTamperUnitTestCase::setUp in Feeds Tamper 7

Same name and namespace in other branches
  1. 6 tests/feeds_tamper_plugins.test \FeedsTamperUnitTestCase::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_tamper_plugins.test, line 17
Unit tests for feeds tamper plugins.

Class

FeedsTamperUnitTestCase
Base class for plugin unit tests.

Code

public function setUp() {
  parent::setUp();
  $plugin = NULL;
  $file = drupal_get_path('module', 'feeds_tamper') . '/plugins/' . $this->plugin_id . '.inc';
  require_once $file;
  $this->plugin_info = $plugin;
}