mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-09-01 06:30:24 +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:
@@ -50,7 +50,7 @@ class Tests_Privacy_WpPrivacyGeneratePersonalDataExportFile extends WP_UnitTestC
|
||||
*
|
||||
* @param WP_UnitTest_Factory $factory The base factory object.
|
||||
*/
|
||||
public static function wpSetUpBeforeClass( $factory ) {
|
||||
public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
|
||||
self::$export_request_id = wp_create_user_request( 'export-requester@example.com', 'export_personal_data' );
|
||||
update_post_meta( self::$export_request_id, '_export_data_grouped', array() );
|
||||
self::$exports_dir = wp_privacy_exports_dir();
|
||||
|
||||
Reference in New Issue
Block a user