WordPress.org

Make WordPress Core

Changeset 49526


Ignore:
Timestamp:
11/06/2020 05:05:59 PM (11 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.7 branch.
See #50573, #48301.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

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

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