Make WordPress Core

Changeset 65283


Ignore:
Timestamp:
11/05/2026 09:22:12 PM (35 hours ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/feed/getTheContentFeed.php

    r65198 r65283  
    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
Note: See TracChangeset for help on using the changeset viewer.