-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2926 from 10up/burhan/improve-commands-test-coverage
Improve wpcli commands test coverage
- Loading branch information
Showing
3 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
tests/cypress/wordpress-files/test-plugins/fake-log-messages.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
/** | ||
* Plugin Name: Fake Log Messages | ||
* Description: Fake log messages for E2E testings | ||
* Version: 1.0.0 | ||
* Author: 10up Inc. | ||
* License: GPLv2 or later | ||
*/ | ||
|
||
|
||
/** | ||
* Add log message for index command with --static-bulk flag. | ||
*/ | ||
add_action( 'ep_after_bulk_index', function() { | ||
WP_CLI::log('Index command with --static-bulk flag completed.'); | ||
} ); |