Make WordPress Core


Ignore:
Timestamp:
11/22/2022 09:25:27 PM (23 months ago)
Author:
SergeyBiryukov
Message:

Tests: Correct references to set_up() and tear_down() in various DocBlocks.

The setUp() and tearDown() methods were renamed to set_up() and tear_down(), respectively, as part of implementing the void return type solution for PHPUnit 8.0.

Follow-up to [29120], [29251], [30277], [32173], [32806], [38829], [42379], [50450], [51276], [51568].

See #56793.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user/capabilities.php

    r54673 r54865  
    17081708
    17091709    public function nullify_current_user() {
    1710         // Prevents fatal errors in ::tearDown()'s and other uses of restore_current_blog().
     1710        // Prevents fatal errors in ::tear_down()'s and other uses of restore_current_blog().
    17111711        $function_stack = wp_debug_backtrace_summary( null, 0, false );
    17121712        if ( in_array( 'restore_current_blog', $function_stack, true ) ) {
Note: See TracChangeset for help on using the changeset viewer.