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/customize/setting.php

    r40088 r40388  
    466466        // Satisfy all requirements for save to happen.
    467467        wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) );
    468         $this->assertTrue( false !== $setting->save() );
     468        $this->assertNotFalse( $setting->save() );
    469469        $this->assertTrue( 1 === did_action( 'customize_update_custom' ) );
    470470        $this->assertTrue( 1 === did_action( 'customize_save_foo' ) );
Note: See TracChangeset for help on using the changeset viewer.