WordPress.org

Make WordPress Core

Changeset 40517


Ignore:
Timestamp:
04/22/2017 05:29:03 PM (2 years ago)
Author:
johnbillion
Message:

Canonical: Don't skip tests if the test data is invalid.

See #40533

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/testcase-canonical.php

    r38654 r40517  
    169169
    170170        if ( !isset($expected['url']) && !isset($expected['qv']) )
    171             $this->markTestSkipped('No valid expected output was provided');
     171            $this->fail( 'No valid expected output was provided' );
    172172
    173173        $this->go_to( home_url( $test_url ) );
     
    182182        }
    183183
     184        // If the test data doesn't include expected query vars, then we're done here
    184185        if ( ! isset($expected['qv']) )
    185186            return;
Note: See TracChangeset for help on using the changeset viewer.