Make WordPress Core


Ignore:
Timestamp:
01/17/2017 03:39:36 AM (9 years ago)
Author:
SergeyBiryukov
Message:

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

Props peterwilsoncc.
Fixes #39219.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/term/wpTaxonomy.php

    r38747 r39919  
    6767        $rewrite_tags_after = $wp_rewrite->rewritecode;
    6868
    69         $this->assertTrue( false !== array_search( "%$taxonomy%", $rewrite_tags ) );
     69        $this->assertNotFalse( array_search( "%$taxonomy%", $rewrite_tags ) );
    7070        $this->assertFalse( array_search( "%$taxonomy%", $rewrite_tags_after ) );
    7171    }
Note: See TracChangeset for help on using the changeset viewer.