Skip to content
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

Add test for WP-CLI Commands #3183

Merged
merged 6 commits into from
Dec 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
2 changes: 1 addition & 1 deletion tests/php/TestAdminNotices.php
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ function() {
}
);
ElasticPress\Screen::factory()->set_current_screen( 'install' );

add_filter(
'ep_post_pre_meta_keys_db',
function() {
Expand Down
Loading