WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/06/2017 06:19:02 PM (3 years ago)
Author:
swissspidy
Message:

Build/Test Tools: Add assertNotFalse() method to WP_UnitTestCase and use it where appropriate.

Props peterwilsoncc.
Fixes #39219.

Merges [39919] to the 4.7 branch.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/tests/phpunit/tests/oembed/wpOembed.php

    r37729 r40388  
    3737        remove_filter( 'pre_oembed_result', array( $this, '_filter_pre_oembed_result' ) );
    3838
    39         $this->assertTrue( false !== $this->pre_oembed_result_filtered );
     39        $this->assertNotFalse( $this->pre_oembed_result_filtered );
    4040        $this->assertEquals( $this->pre_oembed_result_filtered, $actual );
    4141    }
     
    5252        remove_filter( 'pre_oembed_result', array( $this, '_filter_pre_oembed_result' ) );
    5353
    54         $this->assertTrue( false !== $this->pre_oembed_result_filtered );
     54        $this->assertNotFalse( $this->pre_oembed_result_filtered );
    5555        $this->assertEquals( $this->pre_oembed_result_filtered, $actual );
    5656    }
     
    6767        remove_filter( 'pre_oembed_result', array( $this, '_filter_pre_oembed_result' ) );
    6868
    69         $this->assertTrue( false !== $this->pre_oembed_result_filtered );
     69        $this->assertNotFalse( $this->pre_oembed_result_filtered );
    7070        $this->assertFalse( $actual );
    7171    }
Note: See TracChangeset for help on using the changeset viewer.