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

WordPress Trac noreply at wordpress.org
Mon Apr 7 23:13:19 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:                    |     Focuses:
------------------------------+---------------------

Comment (by SergeyBiryukov):

 In [changeset:"60137" 60137]:
 {{{
 #!CommitTicketReference repository="" revision="60137"
 Tests: Simplify the tests for `force_ssl_admin()`.

 Includes:
 * The `$forced` static variable is reset to `false` before each test, and
 the function always returns the previous value on the first call, so there
 is no need to pass the same value from the data provider.
 * Clarifying data provider keys by removing the “first call” references to
 avoid confusion, as the test method always calls the function twice for
 each input value.
 * Replacing unnecessarily redundant test method name for consistency with
 other tests.
 * Moving the data provider after the test method for consistency with
 other tests.
 * Adjusting DocBlock formatting as per the documentation standards.

 Follow-up to [59830].

 See #63167.
 }}}

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


More information about the wp-trac mailing list