@@ -129,7 +129,7 @@ public function test_settings_init__field_web_vitals_tracking_ratio() {
129
129
$ this ->assertSame ( $ field_name , $ field ['id ' ] );
130
130
$ this ->assertSame ( 'Web Vitals Tracking Ratio ' , $ field ['title ' ] );
131
131
132
- $ this ->assertSame ( array ( $ this ->settings ->fields [5 ], 'render ' ), $ field ['callback ' ] );
132
+ $ this ->assertSame ( array ( $ this ->settings ->fields [2 ], 'render ' ), $ field ['callback ' ] );
133
133
134
134
$ this ->assertSame (
135
135
array (
@@ -250,7 +250,7 @@ public function test_web_vitals_tracking_ratio_render__empty_options() {
250
250
$ this ->settings ->settings_init ();
251
251
252
252
ob_start ();
253
- $ this ->settings ->fields [5 ]->render ();
253
+ $ this ->settings ->fields [2 ]->render ();
254
254
$ result = ob_get_contents ();
255
255
ob_end_clean ();
256
256
@@ -270,7 +270,7 @@ public function test_web_vitals_tracking_ratio_render__set_web_vitals_tracking_r
270
270
add_option ( 'spt_settings ' , array ( 'web_vitals_tracking_ratio ' => 0.05 ) );
271
271
272
272
ob_start ();
273
- $ this ->settings ->fields [5 ]->render ();
273
+ $ this ->settings ->fields [2 ]->render ();
274
274
$ result = ob_get_contents ();
275
275
ob_end_clean ();
276
276
@@ -291,7 +291,7 @@ public function test_web_vitals_tracking_ratio_render__theme_web_vitals_tracking
291
291
$ this ->settings ->settings_init ();
292
292
293
293
ob_start ();
294
- $ this ->settings ->fields [5 ]->render ();
294
+ $ this ->settings ->fields [2 ]->render ();
295
295
$ result = ob_get_contents ();
296
296
ob_end_clean ();
297
297
@@ -318,7 +318,7 @@ function () {
318
318
);
319
319
320
320
ob_start ();
321
- $ this ->settings ->fields [5 ]->render ();
321
+ $ this ->settings ->fields [2 ]->render ();
322
322
$ result = ob_get_contents ();
323
323
ob_end_clean ();
324
324
0 commit comments