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

    r40071 r40388  
    12591259        // Test to confirm all sources in the array include the same edit hash.
    12601260        foreach ( $sizes as $size ) {
    1261             $this->assertTrue( false !== strpos( $size, $hash ) );
     1261            $this->assertNotFalse( strpos( $size, $hash ) );
    12621262        }
    12631263    }
Note: See TracChangeset for help on using the changeset viewer.