Skip to content

Commit e887cc9

Browse files
authored
Tests: improve Windows compatibility (#72)
1 parent 988c913 commit e887cc9

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎features/super-admin.feature‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,13 @@ Feature: Manage super admins associated with a multisite instance
135135
admin2
136136
"""
137137

138-
When I run `wp eval 'global $wpdb; $wpdb->delete( $wpdb->users, array( "user_login" => "admin2" ) );'`
138+
Given a delete-user.php file:
139+
"""
140+
<?php
141+
global $wpdb;
142+
$wpdb->delete( $wpdb->users, array( 'user_login' => 'admin2' ) );
143+
"""
144+
When I run `wp eval-file delete-user.php`
139145
And I run `wp eval 'wp_cache_flush();'`
140146
And I run `wp user list --field=user_login --orderby=user_login`
141147
Then STDOUT should be:

0 commit comments

Comments
 (0)