public function FeedsExLineIteratorUnitTests::setUp in Feeds extensible parsers 7.2
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/ FeedsExUnitTests.test, line 193 - Contains unit tests for feeds_ex.
Class
- FeedsExLineIteratorUnitTests
- Reading a line from a file.
Code
public function setUp() {
parent::setUp();
$this->moduleDir = drupal_get_path('module', 'feeds_ex');
require_once DRUPAL_ROOT . '/' . $this->moduleDir . '/src/File/FeedsExLineIterator.php';
}