function AnnounceFeedTestValidateUrl::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
-
modules/
announcements_feed/ tests/ announce_feed_test.test, line 130
Class
- AnnounceFeedTestValidateUrl
- Unit test for validate URL functions.
Code
public function setUp() {
parent::setUp();
module_load_include('inc', 'announcements_feed', 'announcements_feed');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.