Changeset 51568 for trunk/tests/phpunit/tests/rest-api/rest-server.php
- Timestamp:
- 08/07/2021 10:29:41 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-server.php
r51397 r51568 11 11 */ 12 12 class Tests_REST_Server extends WP_Test_REST_TestCase { 13 public function set Up() {14 parent::set Up();13 public function set_up() { 14 parent::set_up(); 15 15 16 16 // Reset REST server to ensure only our routes are registered. … … 21 21 } 22 22 23 public function tear Down() {23 public function tear_down() { 24 24 // Remove our temporary spy server. 25 25 $GLOBALS['wp_rest_server'] = null; 26 26 unset( $_REQUEST['_wpnonce'] ); 27 27 28 parent::tear Down();28 parent::tear_down(); 29 29 } 30 30
Note: See TracChangeset
for help on using the changeset viewer.