You are here

private function LinkAttributeCrudTest::outputScreenContents in Link 6.2

This usually isn't needed. $this->pass($this->content); will usually display the current page.

File

tests/link.attribute.test, line 52
Basic simpletests to test options on link module.

Class

LinkAttributeCrudTest

Code

private function outputScreenContents($description, $basename) {

  // This is a hack to get a directory that won't be cleaned up by simpletest
  $file_dir = file_directory_path() . '/../simpletest_output_pages';
  if (!is_dir($file_dir)) {
    mkdir($file_dir, 0777, TRUE);
  }
  $output_path = "{$file_dir}/{$basename}." . $this
    ->randomName(10) . '.html';
  $rv = file_put_contents($output_path, $this
    ->drupalGetContent());
  $this
    ->pass("{$description}: Contents of result page are " . l('here', $output_path));
}