Skip to content
Snippets Groups Projects
Commit a00b4a46 authored by Kevin Kaland's avatar Kevin Kaland
Browse files

Add a TODO.

parent 7ec3e119
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,7 @@ class FillPdfAdminIdTest extends FileManagedTestBase {
$this->drupalPostForm('admin/structure/fillpdf', $edit, 'Upload');
$this->assertResponse(200, 'Received a 200 response for posted test file.');
// Get the fid of the uploaded file to construct the link.
// @todo: This should be an entity query.
$max_fid_after = db_query('SELECT MAX(fid) AS fid FROM {file_managed}')->fetchField();
$this->drupalGet('admin/structure/fillpdf/' . $max_fid_after);
$this->assertResponse(200, 'Received a 200 response for fillPDF Edit link.');
......
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