mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
Fix tests after [37709].
Avoids using `assertNotFalse()` which is only available in PHPUnit 4.0 and above. See [37708], [37710]. See #36767. git-svn-id: https://develop.svn.wordpress.org/branches/4.5@37711 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d60c6d1206
commit
b4e06aa412
@ -35,7 +35,7 @@ class Tests_WP_oEmbed extends WP_UnitTestCase {
|
||||
$actual = $this->oembed->get_html( $permalink );
|
||||
remove_filter( 'pre_oembed_result', array( $this, '_filter_pre_oembed_result' ) );
|
||||
|
||||
$this->assertNotFalse( $this->pre_oembed_result_filtered );
|
||||
$this->assertTrue( false !== $this->pre_oembed_result_filtered );
|
||||
$this->assertEquals( $this->pre_oembed_result_filtered, $actual );
|
||||
}
|
||||
|
||||
@ -50,7 +50,7 @@ class Tests_WP_oEmbed extends WP_UnitTestCase {
|
||||
$actual = $this->oembed->get_html( $permalink );
|
||||
remove_filter( 'pre_oembed_result', array( $this, '_filter_pre_oembed_result' ) );
|
||||
|
||||
$this->assertNotFalse( $this->pre_oembed_result_filtered );
|
||||
$this->assertTrue( false !== $this->pre_oembed_result_filtered );
|
||||
$this->assertEquals( $this->pre_oembed_result_filtered, $actual );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user