Migrate to latest set_up() methods

See https://make.wordpress.org/core/handbook/testing/automated-testing/writing-phpunit-tests/
This commit is contained in:
Ian Dunn 2022-09-13 11:39:44 -07:00
parent 0e88966246
commit ec8c052204
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB

View file

@ -16,7 +16,7 @@ class Test_Auth extends WP_UnitTestCase {
/**
* Setup fixtures that are shared across all tests.
*/
public static function wpSetUpBeforeClass() {
public static function set_up_before_class() {
$pledge_id = self::factory()->post->create( array(
'post_type' => PLEDGE_POST_TYPE,
'post_title' => 'Valid Pledge',
@ -52,8 +52,8 @@ class Test_Auth extends WP_UnitTestCase {
/**
* Setup fixtures that are unique for each test.
*/
protected function setUp() : void {
parent::setUp();
public function set_up() : void {
parent::set_up();
/*
* `get_authentication_url()` should create a valid token in the database.