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

Yoast / wordpress-seo / a8a215def53aa38d83991bd5baaddd3337e43c4b

07 Nov 2025 10:08AM UTC coverage: 49.286%. First build
a8a215def53aa38d83991bd5baaddd3337e43c4b

Pull #22691

github

web-flow
Merge aeebaf311 into b63825c5c
Pull Request #22691: Initialize the backend work needed for the tasklist.

7 of 184 new or added lines in 13 files covered. (3.8%)

17497 of 35501 relevant lines covered (49.29%)

3.89 hits per line

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

0.0
/src/task-list/application/tasks/complete-ftc.php
1
<?php
2
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
3
namespace Yoast\WP\SEO\Task_List\Application\Tasks;
4

5
use Yoast\WP\SEO\Helpers\First_Time_Configuration_Notice_Helper;
6
use Yoast\WP\SEO\Task_List\Domain\Abstract_Task;
7

8
/**
9
 * Represents the task for the completing the FTC.
10
 */
11
class Complete_FTC extends Abstract_Task {
12

13
        /**
14
         * Holds the id.
15
         *
16
         * @var string
17
         */
18
        protected $id = 'complete-ftc';
19

20
        /**
21
         * Holds the priority.
22
         *
23
         * @var string
24
         */
25
        protected $priority = 'high';
26

27
        /**
28
         * Holds the duration.
29
         *
30
         * @var int
31
         */
32
        protected $duration = 15;
33

34
        /**
35
         * Holds the first time configuration notice helper.
36
         *
37
         * @var First_Time_Configuration_Notice_Helper
38
         */
39
        private $ftc_notice_helper;
40

41
        /**
42
         * Constructs the task.
43
         *
44
         * @param First_Time_Configuration_Notice_Helper $ftc_notice_helper The first time configuration notice helper.
45
         */
NEW
46
        public function __construct( First_Time_Configuration_Notice_Helper $ftc_notice_helper ) {
×
NEW
47
                $this->ftc_notice_helper = $ftc_notice_helper;
×
48
        }
49

50
        /**
51
         * Returns whether this task is completed.
52
         *
53
         * @return bool Whether this task is completed.
54
         */
NEW
55
        public function get_is_completed(): bool {
×
NEW
56
                return $this->ftc_notice_helper->is_first_time_configuration_finished( true );
×
57
        }
58

59
        /**
60
         * Returns the task's link.
61
         *
62
         * @return string|null
63
         */
NEW
64
        public function get_link(): ?string {
×
NEW
65
                return \self_admin_url( 'admin.php?page=wpseo_dashboard#/first-time-configuration' );
×
66
        }
67
}
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