mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
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:
parent
961e090404
commit
4608a20874
@ -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() );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user