-
Notifications
You must be signed in to change notification settings - Fork 15
Tests: improve Windows compatibility #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -135,7 +135,13 @@ Feature: Manage super admins associated with a multisite instance | |||||
| admin2 | ||||||
| """ | ||||||
|
|
||||||
| When I run `wp eval 'global $wpdb; $wpdb->delete( $wpdb->users, array( "user_login" => "admin2" ) );'` | ||||||
| Given a delete-user.php file: | ||||||
| """ | ||||||
| <?php | ||||||
| global $wpdb; | ||||||
| $wpdb->delete( $wpdb->users, array( 'user_login' => 'admin2' ) ); | ||||||
| """ | ||||||
| When I run `wp eval-file delete-user.php` | ||||||
| And I run `wp eval 'wp_cache_flush();'` | ||||||
|
||||||
| And I run `wp eval 'wp_cache_flush();'` | |
| And I run `wp cache flush` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To align with modern PHP standards (PSR-12) and for consistency within the project, please use the short array syntax
[]instead ofarray().References
array(), the use of short array syntax ([]) is a widely adopted best practice in the modern PHP ecosystem and is often enforced by linters configured for PSR-12. (link)