You are here

public function develCase::testFnView in Devel 6

Same name and namespace in other branches
  1. 7 develDrushTest.php \develCase::testFnView()

File

./develDrushTest.php, line 11

Class

develCase

Code

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');
}