function PdfReaderTest::testIframeRendering in PDF Reader 7
Same name and namespace in other branches
- 7.2 tests/pdf_reader.test \PdfReaderTest::testIframeRendering()
File
- tests/
pdf_reader.test, line 11
Class
Code
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);
}