function DrupalTestCase::DrupalTestCase in SimpleTest 6
Same name and namespace in other branches
- 5 drupal_test_case.php \DrupalTestCase::DrupalTestCase()
File
- ./
drupal_test_case.php, line 20
Class
- DrupalTestCase
- Test case for typical Drupal tests. Extends WebTestCase for comfortable browser usage but also implements all UnitTestCase methods, I wish WebTestCase would do this.
Code
function DrupalTestCase($label = NULL) {
if (!$label) {
if (method_exists($this, 'get_info')) {
$info = $this
->get_info();
$label = $info['name'];
}
}
$this
->WebTestCase($label);
}