Improve file path on test

[MAILPOET-3660]
This commit is contained in:
Brezo Cordero
2021-11-04 12:55:56 -05:00
committed by Veljko V
parent 79021fcd19
commit 9da404477b

View File

@@ -655,7 +655,7 @@ class RendererTest extends \MailPoetTest {
$this->fail('Error preparing data for test: failed to create post.');
}
$filename = 'tests/_data/600x400.jpg';
$filename = dirname(__DIR__) . '/../../tests/_data/600x400.jpg';
$contents = file_get_contents($filename);
if (!$contents) {
$this->fail('Error preparing data for test: failed to retrieve file contents.');