Skip to content

Commit

Permalink
PDF test modified.
Browse files Browse the repository at this point in the history
  • Loading branch information
zealfire committed Aug 9, 2015
1 parent ddfe8cf commit f9d8eae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/Tests/PrintablePdfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function testCustomPageExists() {
// Test whether PDF page is being generated.
$this->drupalGet('printable/pdf/node/' . $node->id());
$parser = new \Smalot\PdfParser\Parser();
$pdf = $parser->parseFile('testPDF.pdf');
$pdf = $parser->parseFile('modules/custom/printable/src/Tests/testPDF.pdf');

$text = $pdf->getText();

Expand All @@ -94,9 +94,6 @@ public function testCustomPageExists() {
$this->drupalGet('node/' . $node->id());
$this->assertResponse(200);

// Checks the presence of title in the page.
$this->assertRaw($edit['title[0][value]'], 'Title discovered successfully in the printable page');

// Checks the presence of body in the page.
$this->assertRaw($edit['body[0][value]'], 'Body discovered successfully in the printable page');

Expand Down
4 changes: 4 additions & 0 deletions src/Tests/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[ViewState]
Mode=
Vid=
FolderType=Generic
Binary file added src/Tests/testPDF.pdf
Binary file not shown.

0 comments on commit f9d8eae

Please sign in to comment.