public function FeedsExRemoveDefaultNamespaces::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 132 - Contains unit tests for feeds_ex.
Class
- FeedsExRemoveDefaultNamespaces
- Tests stripping default namespaces.
Code
public function setUp() {
parent::setUp();
require_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'feeds_ex') . '/src/Xml/Utility.php';
}