Skip to content

Commit

Permalink
Merge pull request #3183 from 10up/chore/improve-test-coverage-3054
Browse files Browse the repository at this point in the history
Add test for WP-CLI Commands
  • Loading branch information
felipeelia authored Dec 8, 2022
2 parents c7040ca + d8dfcd4 commit 2e427d9
Show file tree
Hide file tree
Showing 11 changed files with 792 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/classes/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function activate_feature( $args, $assoc_args ) {
}

/**
* Dectivate a feature.
* Deactivate a feature.
*
* ## OPTIONS
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public function remove_fields_from_password_protected( $post_args, $post_id ) {
}

/**
* Exclude proctected post from the frontend queries.
* Exclude protected post from the frontend queries.
*
* @since 4.0.0
*
Expand Down
2 changes: 1 addition & 1 deletion includes/classes/Features.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function activate_feature( $slug ) {
}

/**
* Dectivate a feature
* Deactivate a feature
*
* @param string $slug Feature slug
* @param bool $force Whether to force deactivation
Expand Down
5 changes: 5 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@
<directory prefix="Test" suffix=".php">./tests/php/</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>skip-on-multi-site</group>
</exclude>
</groups>
</phpunit>
5 changes: 5 additions & 0 deletions single-site.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@
<exclude>./tests/php/indexables/TestTermMultisite.php</exclude>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>skip-on-single-site</group>
</exclude>
</groups>
</phpunit>
Loading

0 comments on commit 2e427d9

Please sign in to comment.