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/theme.php

    r39173 r40388  
    303303        $theme = wp_get_theme();
    304304        $this->assertEquals( $style, (string) $theme );
    305         $this->assertNotSame( false, $theme->errors() );
     305        $this->assertNotFalse( $theme->errors() );
    306306        $this->assertFalse( $theme->exists() );
    307307
Note: See TracChangeset for help on using the changeset viewer.