WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/06/2020 05:03:57 PM (12 months ago)
Author:
desrosj
Message:

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.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/tests/phpunit/tests/image/functions.php

    r48487 r49524  
    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() );
Note: See TracChangeset for help on using the changeset viewer.