• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / wordpress-seo / 6892519348

16 Nov 2023 03:00PM UTC coverage: 49.203% (-0.08%) from 49.287%
6892519348

Pull #20470

github

thijsoo
Small fix in using the name of the post type instead of the object.
Pull Request #20470: Introduces indexables verification cron

129 of 283 new or added lines in 25 files covered. (45.58%)

652 existing lines in 2 files now uncovered.

13368 of 27169 relevant lines covered (49.2%)

3.92 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/src/indexables/application/next-verification-action-handler.php
1
<?php
2

3
namespace Yoast\WP\SEO\Indexables\Application;
4

5
use Yoast\WP\SEO\Helpers\Options_Helper;
6
use Yoast\WP\SEO\Indexables\Domain\Current_Verification_Action;
7

8
/**
9
 * The Next_Verification_Action_Handler class.
10
 */
11
class Next_Verification_Action_Handler {
12

13
        /**
14
         * The options helper instance.
15
         *
16
         * @var Options_Helper
17
         */
18
        protected $options_helper;
19

20
        /**
21
         * The constructor.
22
         *
23
         * @param Options_Helper $options_helper The options helper.
24
         */
25
        public function __construct( Options_Helper $options_helper ) {
NEW
26
                $this->options_helper = $options_helper;
×
27
        }
28

29
        /**
30
         * Gets the cron_verify_current_action option.
31
         *
32
         * @return string
33
         */
34
        public function get_current_verification_action(): string {
35
                return $this->options_helper->get( 'cron_verify_current_action', 'term' );
2✔
36
        }
37

38
        /**
39
         * Sets the cron_verify_current_action based on the current action.
40
         *
41
         * @param Current_Verification_Action $current_verification_action The current verification action.
42
         *
43
         * @return void
44
         */
45
        public function set_current_verification_action( Current_Verification_Action $current_verification_action ): void {
46
                $this->options_helper->set( 'cron_verify_current_action', $current_verification_action->get_action() );
2✔
47
        }
1✔
48
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc