mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
Build/Test Tools: Standardise the name, signature, and usage of the wpSetUpBeforeClass() method that's used in test classes.
This brings consistency to this often-used method, and allows IDEs to provide help to developers when using its `$factory` parameter. See #51344 git-svn-id: https://develop.svn.wordpress.org/trunk@49603 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -19,7 +19,7 @@ class Tests_Auth extends WP_UnitTestCase {
|
||||
*/
|
||||
protected $nonce_failure_hook = 'wp_verify_nonce_failed';
|
||||
|
||||
public static function wpSetUpBeforeClass( $factory ) {
|
||||
public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
|
||||
self::$_user = $factory->user->create_and_get(
|
||||
array(
|
||||
'user_login' => 'password-tests',
|
||||
|
||||
Reference in New Issue
Block a user