Skip to content

Commit 61afa63

Browse files
committed
Tests: Fix an incorrect variable name in PDF tests.
This causes a PHP error when running the test suite with PDF rendering supported. See #50573, #48301. git-svn-id: https://develop.svn.wordpress.org/branches/5.0@49523 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 83f29fe commit 61afa63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/phpunit/tests/image/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ public function test_pdf_preview_doesnt_overwrite_existing_jpeg() {
560560
$pdf_path = '/tmp/test.pdf';
561561
copy( DIR_TESTDATA . '/images/wordpress-gsoc-flyer.pdf', $pdf_path );
562562

563-
$editor = wp_get_image_editor( $test_file );
563+
$editor = wp_get_image_editor( $pdf_path );
564564
if ( is_wp_error( $editor ) ) {
565565
$this->markTestSkipped( $editor->get_error_message() );
566566
}

0 commit comments

Comments
 (0)