Make WordPress Core


Ignore:
Timestamp:
03/01/2021 06:42:49 PM (4 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Remove redundant teardown functionality from individual tests which is already covered in the base teardown method.

See #52625

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rewrite/rewriteTags.php

    r48939 r50463  
    88    protected $rewritereplace;
    99    protected $queryreplace;
    10     protected $wp_rewrite;
    1110
    1211    public function setUp() {
     
    1413        parent::setUp();
    1514
    16         $this->wp_rewrite = $wp_rewrite;
    17         $wp_rewrite       = new WP_Rewrite();
     15        $wp_rewrite = new WP_Rewrite();
    1816        $wp_rewrite->init();
    1917
     
    2119        $this->rewritereplace = $wp_rewrite->rewritereplace;
    2220        $this->queryreplace   = $wp_rewrite->queryreplace;
    23     }
    24 
    25     public function tearDown() {
    26         global $wp_rewrite;
    27         $wp_rewrite = $this->wp_rewrite;
    2821    }
    2922
Note: See TracChangeset for help on using the changeset viewer.