Tests: Fix an incorrect variable name in PDF tests.

This causes a PHP error when running the test suite with PDF rendering supported.

Merges [49523] to the 4.9 branch.
See #50573, #48301.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@49524 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonathan Desrosiers 2020-11-06 17:03:57 +00:00
parent 961e090404
commit 4608a20874

View File

@ -560,7 +560,7 @@ class Tests_Image_Functions extends WP_UnitTestCase {
$pdf_path = '/tmp/test.pdf';
copy( DIR_TESTDATA . '/images/wordpress-gsoc-flyer.pdf', $pdf_path );
$editor = wp_get_image_editor( $test_file );
$editor = wp_get_image_editor( $pdf_path );
if ( is_wp_error( $editor ) ) {
$this->markTestSkipped( $editor->get_error_message() );
}