Make WordPress Core


Ignore:
Timestamp:
11/03/2020 03:50:51 PM (4 years ago)
Author:
johnbillion
Message:

Tests: Remove some useless assertions from the image editor tests.

In each of these instances the variable being tested is a directly instantiated object and can never be a WP_Error, unlike when wp_get_image_editor() is used.

See #51344

File:
1 edited

Legend:

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

    r48937 r49488  
    532532
    533533        $editor = new WP_Image_Editor_GD( $file );
    534                 $this->assertNotWPError( $editor );
    535534                $editor->load();
    536535                $editor->rotate( 180 );
Note: See TracChangeset for help on using the changeset viewer.