Make WordPress Core


Ignore:
Timestamp:
07/06/2020 04:13:26 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Tests: Add some assertions to PDF tests for better debugging.

Props enrico.sorcinelli.
See #50573.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/image/functions.php

    r47198 r48338  
    424424        copy( $orig_file, $test_file );
    425425
     426        $this->assertNotWPError( wp_get_image_editor( $test_file ) );
     427
    426428        $attachment_id = $this->factory->attachment->create_object(
    427429            $test_file,
     
    489491        copy( $orig_file, $test_file );
    490492
     493        $this->assertNotWPError( wp_get_image_editor( $test_file ) );
     494
    491495        $attachment_id = $this->factory->attachment->create_object(
    492496            $test_file,
     
    549553        copy( $orig_file, $test_file );
    550554
     555        $this->assertNotWPError( wp_get_image_editor( $test_file ) );
     556
    551557        $attachment_id = $this->factory->attachment->create_object(
    552558            $test_file,
     
    608614        $pdf_path = '/tmp/test.pdf';
    609615        copy( DIR_TESTDATA . '/images/wordpress-gsoc-flyer.pdf', $pdf_path );
     616
     617        $this->assertNotWPError( wp_get_image_editor( $pdf_path ) );
    610618
    611619        $attachment_id = $this->factory->attachment->create_object(
Note: See TracChangeset for help on using the changeset viewer.