Skip to content
Snippets Groups Projects
Commit 99c4204c authored by Liam Morland's avatar Liam Morland
Browse files

Issue #2957163 by Liam Morland: Test upload page when FillPDF not configured

parent 4f33af33
No related branches found
No related tags found
No related merge requests found
......@@ -43,8 +43,14 @@ class FillPdfTestCase extends FileFieldTestCase {
*
*/
public function testPdfUpload() {
$this->configureBackend();
// FillPDF not configured.
$this->drupalGet('admin/structure/fillpdf');
$this->assertText('Before you can upload PDF files, you must configure FillPDF.');
$this->assertNoFieldByXPath('//input[@id="edit-upload-pdf"]', NULL, 'PDF upload component does not exist when FillPDF is not configured.');
// FillPDF configured.
$this->configureBackend();
$this->drupalGet('admin/structure/fillpdf');
$this->assertFieldByXPath('//input[@id="edit-upload-pdf"]', NULL, 'PDF upload component exists.');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment