You are here

pdf_reader.test in PDF Reader 7

Same filename and directory in other branches
  1. 7.2 tests/pdf_reader.test

File

tests/pdf_reader.test
View source
<?php

class PdfReaderTest extends DrupalWebTestCase {
  public static function getInfo() {
    return array(
      'name' => 'PDF Reader tests',
      'description' => 'Tests for PDF Reader module.',
      'group' => 'Other',
    );
  }
  function testIframeRendering() {
    $settings = array(
      'file' => array(
        'uri' => 'http://test.com',
      ),
      'settings' => array(
        'renderer' => 'google',
      ),
    );
    $html = theme('pdf_reader', array(
      'file' => $item,
      'settings' => $settings,
    ));
    $message = t('iframe for Google Viewer should be there.');
    $this
      ->assertNotEqual(strpos($html, 'iframe'), FALSE, $message);
  }
  function testPdfLoad() {
  }

}

Classes

Namesort descending Description
PdfReaderTest