[wp-trac] [WordPress Trac] #63167: Test tool and unit test improvements for 6.9

WordPress Trac noreply at wordpress.org
Thu Nov 6 22:23:10 UTC 2025


#63167: Test tool and unit test improvements for 6.9
--------------------------------------+---------------------
 Reporter:  desrosj                   |       Owner:  (none)
     Type:  task (blessed)            |      Status:  new
 Priority:  normal                    |   Milestone:  6.9
Component:  Build/Test Tools          |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by westonruter):

 In [changeset:"61171" 61171]:
 {{{
 #!CommitTicketReference repository="" revision="61171"
 Tests: Fix unit test failure in PHP 8.5 due using null as an array offset.

 This adds `is_string()` type checks for the `$post_status` arg passed to
 both `get_post_status_object()` and `is_post_status_viewable()`. This was
 triggered by
 `Tests_Post_IsPostStatusViewable::test_built_in_and_unregistered_status_types()`
 for the `null` data set.

 Follow-up to [61170].

 See #63167, #63061.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63167#comment:106>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list