Skip to content

Commit 66eddb7

Browse files
Sarthak JaiswalSarthak Jaiswal
authored andcommitted
Add @codeCoverageIgnore in uninstall.php
1 parent ddc02d0 commit 66eddb7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plugins/speculation-rules/tests/test-speculation-rules-settings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public function test_add_setting_ui(): void {
215215
*
216216
* @return array<string, array<mixed>> Data for testing settings fields.
217217
*/
218-
public function settingsFieldProvider(): array {
218+
public function data_provider_to_test_render_settings_field(): array {
219219
return array(
220220
'mode' => array(
221221
array(
@@ -251,7 +251,7 @@ public function settingsFieldProvider(): array {
251251
/**
252252
* Test rendering of settings fields using data provider.
253253
*
254-
* @dataProvider settingsFieldProvider
254+
* @dataProvider data_provider_to_test_render_settings_field
255255
* @param array<mixed> $args Arguments for the settings field.
256256
* @param array<mixed> $stored_settings Stored settings values.
257257
* @param string $name_check HTML name attribute check.

plugins/speculation-rules/uninstall.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
// If uninstall.php is not called by WordPress, bail.
1010
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
11-
exit;
11+
exit;// @codeCoverageIgnore
1212
}
1313

1414
// For a multisite, delete the option for all sites (however limited to 100 sites to avoid memory limit or timeout problems in large scale networks).

0 commit comments

Comments
 (0)