WordPress.org

Make WordPress Core

Changeset 37711


Ignore:
Timestamp:
06/15/16 12:23:13 (17 months ago)
Author:
swissspidy
Message:

Fix tests after [37709].

Avoids using assertNotFalse() which is only available in PHPUnit 4.0 and above.

See [37708], [37710].
See #36767.

Location:
branches/4.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.5

  • branches/4.5/tests/phpunit/tests/oembed/wpOembed.php

    r37709 r37711  
    3636        remove_filter( 'pre_oembed_result', array( $this, '_filter_pre_oembed_result' ) ); 
    3737 
    38         $this->assertNotFalse( $this->pre_oembed_result_filtered ); 
     38        $this->assertTrue( false !== $this->pre_oembed_result_filtered ); 
    3939        $this->assertEquals( $this->pre_oembed_result_filtered, $actual ); 
    4040    } 
     
    5151        remove_filter( 'pre_oembed_result', array( $this, '_filter_pre_oembed_result' ) ); 
    5252 
    53         $this->assertNotFalse( $this->pre_oembed_result_filtered ); 
     53        $this->assertTrue( false !== $this->pre_oembed_result_filtered ); 
    5454        $this->assertEquals( $this->pre_oembed_result_filtered, $actual ); 
    5555    } 
Note: See TracChangeset for help on using the changeset viewer.