You are here

public function FeedsTamperUnitTestCase::setUp in Feeds Tamper 6

Same name and namespace in other branches
  1. 7 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 22
Unit tests for feeds tamper plugins.

Class

FeedsTamperUnitTestCase
Base class for plugin unit tests.

Code

public function setUp() {
  parent::setUp();
  $plugin = NULL;
  $file = $this
    ->getPluginPath();
  require_once $file;
  $this->plugin_info = $plugin;
}