File tree Expand file tree Collapse file tree 5 files changed +11
-10
lines changed
plugins/web-worker-offloading Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ public function set_up(): void {
16
16
17
17
/**
18
18
* Test the function that configures WWO for Rank Math SEO.
19
+ *
20
+ * @covers ::plwwo_rank_math_configure
19
21
*/
20
22
public function test_plwwo_rank_math_configure (): void {
21
23
$ configuration = array ();
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ public function set_up(): void {
16
16
17
17
/**
18
18
* Test the function that configures WWO for WooCommerce.
19
+ *
20
+ * @covers ::plwwo_woocommerce_configure
19
21
*/
20
22
public function test_plwwo_woocommerce_configure (): void {
21
23
$ configuration = array ();
Original file line number Diff line number Diff line change @@ -43,16 +43,15 @@ function plwwo_google_site_kit_configure( $configuration ): array {
43
43
44
44
return $ configuration ;
45
45
}
46
- // @codeCoverageIgnoreStart
47
- add_filter ( 'plwwo_configuration ' , 'plwwo_google_site_kit_configure ' );
46
+ add_filter ( 'plwwo_configuration ' , 'plwwo_google_site_kit_configure ' ); // @codeCoverageIgnore
48
47
49
48
plwwo_mark_scripts_for_offloading (
50
49
array (
51
50
'google_gtagjs ' ,
52
51
'googlesitekit-consent-mode ' ,
53
52
)
54
53
);
55
- // @codeCoverageIgnoreEnd
54
+
56
55
/**
57
56
* Filters inline script attributes to offload Google Site Kit's GTag script tag to Partytown.
58
57
*
@@ -71,4 +70,4 @@ function plwwo_google_site_kit_filter_inline_script_attributes( $attributes ) {
71
70
return $ attributes ;
72
71
}
73
72
74
- add_filter ( 'wp_inline_script_attributes ' , 'plwwo_google_site_kit_filter_inline_script_attributes ' );// @codeCoverageIgnore
73
+ add_filter ( 'wp_inline_script_attributes ' , 'plwwo_google_site_kit_filter_inline_script_attributes ' ); // @codeCoverageIgnore
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ function plwwo_rank_math_configure( $configuration ): array {
32
32
$ configuration ['forward ' ][] = 'gtag ' ;
33
33
return $ configuration ;
34
34
}
35
- add_filter ( 'plwwo_configuration ' , 'plwwo_rank_math_configure ' );// @codeCoverageIgnore
35
+ add_filter ( 'plwwo_configuration ' , 'plwwo_rank_math_configure ' ); // @codeCoverageIgnore
36
36
37
37
/*
38
38
* Note: The following integration is not targeting the \RankMath\Analytics\GTag::enqueue_gtag_js() code which is only
@@ -60,7 +60,7 @@ function plwwo_rank_math_filter_script_attributes( $attributes ) {
60
60
return $ attributes ;
61
61
}
62
62
63
- add_filter ( 'wp_script_attributes ' , 'plwwo_rank_math_filter_script_attributes ' );// @codeCoverageIgnore
63
+ add_filter ( 'wp_script_attributes ' , 'plwwo_rank_math_filter_script_attributes ' ); // @codeCoverageIgnore
64
64
65
65
/**
66
66
* Filters inline script attributes to offload Rank Math's GTag script tag to Partytown.
@@ -80,4 +80,4 @@ function plwwo_rank_math_filter_inline_script_attributes( $attributes ) {
80
80
return $ attributes ;
81
81
}
82
82
83
- add_filter ( 'wp_inline_script_attributes ' , 'plwwo_rank_math_filter_inline_script_attributes ' );// @codeCoverageIgnore
83
+ add_filter ( 'wp_inline_script_attributes ' , 'plwwo_rank_math_filter_inline_script_attributes ' ); // @codeCoverageIgnore
Original file line number Diff line number Diff line change @@ -33,8 +33,7 @@ function plwwo_woocommerce_configure( $configuration ): array {
33
33
34
34
return $ configuration ;
35
35
}
36
- // @codeCoverageIgnoreStart
37
- add_filter ( 'plwwo_configuration ' , 'plwwo_woocommerce_configure ' );
36
+ add_filter ( 'plwwo_configuration ' , 'plwwo_woocommerce_configure ' ); // @codeCoverageIgnore
38
37
39
38
plwwo_mark_scripts_for_offloading (
40
39
// Note: 'woocommerce-google-analytics-integration' is intentionally not included because for some reason events like add_to_cart don't get tracked.
@@ -43,4 +42,3 @@ function plwwo_woocommerce_configure( $configuration ): array {
43
42
'woocommerce-google-analytics-integration-gtag ' ,
44
43
)
45
44
);
46
- // @codeCoverageIgnoreEnd
You can’t perform that action at this time.
0 commit comments