Make WordPress Core


Ignore:
Timestamp:
01/17/2017 03:39:36 AM (10 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/theme/support.php

    r37313 r39919  
    9191                $this->assertFalse( current_theme_supports( 'html5' ) );
    9292                $this->assertFalse( current_theme_supports( 'html5', 'comment-form' ) );
    93                 $this->assertNotSame( false, add_theme_support( 'html5' ) );
     93                $this->assertNotFalse( add_theme_support( 'html5' ) );
    9494                $this->assertTrue( current_theme_supports( 'html5' ) );
    9595                $this->assertTrue( current_theme_supports( 'html5', 'comment-form' ) );
    … …  
    109109                $this->assertFalse( current_theme_supports( 'html5', 'comment-form' ) );
    110110                $this->assertFalse( add_theme_support( 'html5', 'comment-form' ) );
    111                 $this->assertNotSame( false, add_theme_support( 'html5', array( 'comment-form' ) ) );
     111                $this->assertNotFalse( add_theme_support( 'html5', array( 'comment-form' ) ) );
    112112                $this->assertTrue( current_theme_supports( 'html5', 'comment-form' ) );
    113113
    … …  
    118118                // It appends, rather than replaces.
    119119                $this->assertFalse( current_theme_supports( 'html5', 'comment-list' ) );
    120                 $this->assertNotSame( false, add_theme_support( 'html5', array( 'comment-list' ) ) );
     120                $this->assertNotFalse( add_theme_support( 'html5', array( 'comment-list' ) ) );
    121121                $this->assertTrue( current_theme_supports( 'html5', 'comment-form' ) );
    122122                $this->assertTrue( current_theme_supports( 'html5', 'comment-list' ) );
Note: See TracChangeset for help on using the changeset viewer.