Changeset 51568 for trunk/tests/phpunit/tests/dbdelta.php
- Timestamp:
- 08/07/2021 10:29:41 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/dbdelta.php
r50450 r51568 33 33 * Make sure the upgrade code is loaded before the tests are run. 34 34 */ 35 public static function set UpBeforeClass() {36 37 parent::set UpBeforeClass();35 public static function set_up_before_class() { 36 37 parent::set_up_before_class(); 38 38 39 39 require_once ABSPATH . 'wp-admin/includes/upgrade.php'; … … 43 43 * Create a custom table to be used in each test. 44 44 */ 45 public function set Up() {45 public function set_up() { 46 46 47 47 global $wpdb; … … 82 82 // This has to be called after the `CREATE TABLE` above as the `_create_temporary_tables` filter 83 83 // causes it to create a temporary table, and a temporary table cannot use a FULLTEXT index. 84 parent::set Up();84 parent::set_up(); 85 85 } 86 86 … … 88 88 * Delete the custom table on teardown. 89 89 */ 90 public function tear Down() {91 92 global $wpdb; 93 94 parent::tear Down();90 public function tear_down() { 91 92 global $wpdb; 93 94 parent::tear_down(); 95 95 96 96 // This has to be called after the parent `tearDown()` method.
Note: See TracChangeset
for help on using the changeset viewer.