class develCase in Devel 7
Same name and namespace in other branches
- 6 develDrushTest.php \develCase
Class for testing Drush integration.
Hierarchy
- class \develCase extends \Drush_CommandTestCase
Expanded class hierarchy of develCase
File
- ./
develDrushTest.php, line 19 - PHPUnit Tests for devel.
View source
class develCase extends Drush_CommandTestCase {
/**
* Tests the printing of a function and its Doxygen comment.
*/
public function testFnView() {
$sites = $this
->setUpDrupal(1, TRUE);
$options = array(
'root' => $this
->webroot(),
'uri' => key($sites),
);
$this
->drush('pm-download', array(
'devel',
), $options + array(
'cache' => NULL,
));
$this
->drush('pm-enable', array(
'devel',
), $options + array(
'skip' => NULL,
'yes' => NULL,
));
$this
->drush('fn-view', array(
'drush_main',
), $options);
$output = $this
->getOutput();
$this
->assertContains('@return', $output, 'Output contain @return Doxygen.');
$this
->assertContains('function drush_main() {', $output, 'Output contains function drush_main() declaration');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
develCase:: |
public | function | Tests the printing of a function and its Doxygen comment. |