Skip to content

Commit

Permalink
Update test naming to match funciton name
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsilverstein committed Feb 12, 2024
1 parent 911685c commit e7d7f56
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ class Embed_Optimizer_Helper_Tests extends WP_UnitTestCase {
/**
* Test that the oEmbed HTML is filtered.
*
* @dataProvider test_oembed_optimize_html_data
* @dataProvider test_filter_oembed_html_data
*/
public function test_embed_optimizer_html( $html, $expected = null ) {
public function test__filter_oembed_html( $html, $expected = null ) {
if ( null === $expected ) {
$expected = $html; // No change.
}
$this->assertEquals( $expected, embed_optimizer_html( $html ) );
$this->assertEquals( $expected, embed_optimizer_filter_oembed_html( $html ) );
}

/**
* Data provider for oEmbed HTML tests.
*
* @return array
*/
public function test_oembed_optimize_html_data() {
public function test_filter_oembed_html_data() {
return array(
// A single iframe.
array(
Expand Down

0 comments on commit e7d7f56

Please sign in to comment.