We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f86adb2 commit 1526ad5Copy full SHA for 1526ad5
1 file changed
tests/phpunit/tests/rest-api/rest-users-controller.php
@@ -1378,6 +1378,10 @@ public function test_create_item() {
1378
* @ticket 40477
1379
*/
1380
public function test_create_user_sends_admin_notification() {
1381
+ if ( is_multisite() ) {
1382
+ grant_super_admin( self::$user );
1383
+ }
1384
+
1385
wp_set_current_user( self::$user );
1386
reset_phpmailer_instance();
1387
@@ -1398,6 +1402,10 @@ public function test_create_user_sends_admin_notification() {
1398
1402
1399
1403
1400
1404
public function test_create_user_notification_respects_filter() {
1405
1406
1407
1408
1401
1409
1410
add_filter(
1411
'rest_wp_user_created_notification',
0 commit comments