Skip to content

Commit bbfaa06

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. Merges [49523] to the 4.7 branch. See #50573, #48301. git-svn-id: https://develop.svn.wordpress.org/branches/4.7@49526 602fd350-edb4-49c9-b593-d223f7449a82
1 parent cf88f30 commit bbfaa06

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
@@ -492,7 +492,7 @@ public function test_pdf_preview_doesnt_overwrite_existing_jpeg() {
492492
$pdf_path = '/tmp/test.pdf';
493493
copy( DIR_TESTDATA . '/images/wordpress-gsoc-flyer.pdf', $pdf_path );
494494

495-
$editor = wp_get_image_editor( $test_file );
495+
$editor = wp_get_image_editor( $pdf_path );
496496
if ( is_wp_error( $editor ) ) {
497497
$this->markTestSkipped( $editor->get_error_message() );
498498
}

0 commit comments

Comments
 (0)