Skip to content

Commit a1eedfb

Browse files
Tests: Remove redundant null call in get_the_content_feed() coverage.
The no-argument call already passes the default `null` value, so the explicit `null` invocation in that method adds no distinct protection. Explicit `null` with a customized `default_feed` remains covered by `test_null_feed_type_uses_default_feed()`. Follow-up to r65198. Props shailu25, lancewillett. Fixes #66475. git-svn-id: https://develop.svn.wordpress.org/trunk@65283 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e5cb560 commit a1eedfb

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎tests/phpunit/tests/feed/getTheContentFeed.php‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ public function test_returns_filtered_content_for_default_feed_type() {
4747
$this->assertSame( "<p>Hello feed content</p>\n", get_the_content_feed() );
4848
$this->assertSame( 1, $filter->get_call_count() );
4949
$this->assertSame( 'rss2', $filter->get_args()[0][1] );
50-
51-
$this->assertSame( "<p>Hello feed content</p>\n", get_the_content_feed( null ) );
52-
$this->assertSame( 2, $filter->get_call_count() );
53-
$this->assertSame( 'rss2', $filter->get_args()[1][1] );
5450
}
5551

5652
/**

0 commit comments

Comments
 (0)