public function TamperPluginsTestBase::setUp in Tamper 7
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
- src/
Tests/ TamperPlugins.test, line 13 - Contains tests for Tamper plugins.
Class
- TamperPluginsTestBase
- Base class for Feeds Tamper plugin tests.
Code
public function setUp() {
$this->moduleDirectory = dirname(dirname(dirname(__FILE__)));
// Load main Tamper classes.
require_once $this->moduleDirectory . '/src/Tamper.php';
$this
->loadPlugin($this->moduleDirectory);
parent::setUp();
}