Skip to content

Commit 59d1694

Browse files
authored
Fix PHPCS errors in Behat test files (#77)
1 parent 792f34c commit 59d1694

1 file changed

Lines changed: 24 additions & 12 deletions

File tree

‎features/super-admin.feature‎

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -262,18 +262,30 @@ Feature: Manage super admins associated with a multisite instance
262262
And a wp-content/mu-plugins/test-hooks.php file:
263263
"""
264264
<?php
265-
add_action( 'grant_super_admin', static function () {
266-
WP_CLI::log( 'grant_super_admin hook was fired.' );
267-
});
268-
add_action( 'granted_super_admin', static function () {
269-
WP_CLI::log( 'granted_super_admin hook was fired.' );
270-
});
271-
add_action( 'revoke_super_admin', static function () {
272-
WP_CLI::log( 'revoke_super_admin hook was fired.' );
273-
});
274-
add_action( 'revoked_super_admin', static function () {
275-
WP_CLI::log( 'revoked_super_admin hook was fired.' );
276-
});
265+
add_action(
266+
'grant_super_admin',
267+
static function () {
268+
WP_CLI::log( 'grant_super_admin hook was fired.' );
269+
}
270+
);
271+
add_action(
272+
'granted_super_admin',
273+
static function () {
274+
WP_CLI::log( 'granted_super_admin hook was fired.' );
275+
}
276+
);
277+
add_action(
278+
'revoke_super_admin',
279+
static function () {
280+
WP_CLI::log( 'revoke_super_admin hook was fired.' );
281+
}
282+
);
283+
add_action(
284+
'revoked_super_admin',
285+
static function () {
286+
WP_CLI::log( 'revoked_super_admin hook was fired.' );
287+
}
288+
);
277289
"""
278290

279291
When I run `wp user create superadmin superadmin@example.com`

0 commit comments

Comments
 (0)