• 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/enable-llms-txt.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\Options_Helper;
6
use Yoast\WP\SEO\Task_List\Domain\Abstract_Completeable_Task;
7

8
/**
9
 * Represents the task for the enabling the llms.txt file.
10
 */
11
class Enable_Llms_Txt extends Abstract_Completeable_Task {
12

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

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

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

34
        /**
35
         * Holds the options helper.
36
         *
37
         * @var Options_Helper
38
         */
39
        private $options_helper;
40

41
        /**
42
         * Constructs the task.
43
         *
44
         * @param Options_Helper $options_helper The options helper.
45
         */
NEW
46
        public function __construct( Options_Helper $options_helper ) {
×
NEW
47
                $this->options_helper = $options_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->options_helper->get( 'enable_llms_txt', false );
×
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 null;
×
66
        }
67

68
        /**
69
         * Completes a task.
70
         *
71
         * @return void
72
         */
NEW
73
        public function complete_task(): void {
×
NEW
74
                $this->options_helper->set( 'enable_llms_txt', true );
×
75
        }
76
}
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