Adding attachFiles function and unit tests#29
Adding attachFiles function and unit tests#29claird merged 7 commits intoclaird:masterfrom michd89:master
Conversation
Added a unit test for the addAttachment function because it was missing.
Added a unit test for the attachFiles function.
Compatibility.
|
Hey @michd89, some of the test data is missing from your (two?) tests. Nothing serious, you should just commit them as well (track them into the staging area → commit → push again). Here are the error backlogs under my setup:
|
|
@Newnone Indeed, I left some paths within the tests, which existed only in my local repository. Now I replaced them by temporary files. |
|
All seems to be fine now. By the way, I suppose you have guessed the structure of the test suite. If need to be, you can place test files within dedicated directories (e.g. Until I find time to carefully analyze how these changes interfere with the preexisting code, I leave it to @claird whether or not this PR can be merged. |
|
Yes, in the beginning I thought about using dedicated directories (I kept them in my early tests; that's why they failed before the fix). But actually the files which are already provided in Between the Edit: Typo |
Added the attachFiles function for attaching multiple files onto a PDF created with a PdfFileWriter. Also added a respective unit test.
There was no unit test for the addAttachment function, so I wrote one.