Skip to content

Commit 093947e

Browse files
committed
Tests: further Windows compatibility fixes
1 parent 613b0a6 commit 093947e

4 files changed

Lines changed: 110 additions & 86 deletions

File tree

features/comment-recount.feature

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ Feature: Recount comments on a post
1111
3
1212
"""
1313

14-
When I run `wp eval 'global $wpdb; $wpdb->update( $wpdb->posts, array( "comment_count" => 1 ), array( "ID" => 1 ) ); clean_post_cache( 1 );'`
14+
Given a recount-comments.php file:
15+
"""
16+
<?php
17+
global $wpdb;
18+
$wpdb->update( $wpdb->posts, array( "comment_count" => 1 ), array( "ID" => 1 ) );
19+
clean_post_cache( 1 );
20+
"""
21+
When I run `wp eval-file recount-comments.php`
1522
And I run `wp post get 1 --field=comment_count`
1623
Then STDOUT should be:
1724
"""

0 commit comments

Comments
 (0)