Make WordPress Core


Ignore:
Timestamp:
10/15/2015 01:17:22 AM (9 years ago)
Author:
wonderboymusic
Message:

Unit Tests: Tests_Canonical doesn't need to call wp_set_current_user() or implement tearDown because its grandparent calls wp_set_current_user( 0 ) in tearDown().

See #30017, #33968.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/canonical.php

    r34492 r35177  
    2121        parent::setUp();
    2222        wp_set_current_user( self::$author_id );
    23     }
    24 
    25     public function tearDown() {
    26         wp_set_current_user( self::$old_current_user );
    27         parent::tearDown();
    2823    }
    2924
Note: See TracChangeset for help on using the changeset viewer.