mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-21 10:33:44 +03:00
Migrate to latest set_up()
methods
See https://make.wordpress.org/core/handbook/testing/automated-testing/writing-phpunit-tests/
This commit is contained in:
parent
0e88966246
commit
ec8c052204
|
@ -16,7 +16,7 @@ class Test_Auth extends WP_UnitTestCase {
|
||||||
/**
|
/**
|
||||||
* Setup fixtures that are shared across all tests.
|
* 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(
|
$pledge_id = self::factory()->post->create( array(
|
||||||
'post_type' => PLEDGE_POST_TYPE,
|
'post_type' => PLEDGE_POST_TYPE,
|
||||||
'post_title' => 'Valid Pledge',
|
'post_title' => 'Valid Pledge',
|
||||||
|
@ -52,8 +52,8 @@ class Test_Auth extends WP_UnitTestCase {
|
||||||
/**
|
/**
|
||||||
* Setup fixtures that are unique for each test.
|
* Setup fixtures that are unique for each test.
|
||||||
*/
|
*/
|
||||||
protected function setUp() : void {
|
public function set_up() : void {
|
||||||
parent::setUp();
|
parent::set_up();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* `get_authentication_url()` should create a valid token in the database.
|
* `get_authentication_url()` should create a valid token in the database.
|
||||||
|
|
Loading…
Reference in a new issue