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:
Pascal Birchler 2016-06-15 12:23:13 +00:00
parent d60c6d1206
commit b4e06aa412

View File

@ -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 );
}
}