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

Yoast / wordpress-seo / ff643ac76c8a978a3cbd6ac7d9c7ece570fd125e

20 Nov 2025 06:50AM UTC coverage: 52.669% (-0.5%) from 53.179%
ff643ac76c8a978a3cbd6ac7d9c7ece570fd125e

Pull #22731

github

web-flow
Merge 94fb3497f into e022658de
Pull Request #22731: Misc improvements for the backend of the tasklist

8307 of 15569 branches covered (53.36%)

Branch coverage included in aggregate %.

0 of 54 new or added lines in 10 files covered. (0.0%)

4 existing lines in 4 files now uncovered.

31811 of 60601 relevant lines covered (52.49%)

47580.18 hits per line

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

0.0
/src/task-list/application/configuration/task-list-configuration.php
1
<?php
2

3

4
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
5
namespace Yoast\WP\SEO\Task_List\Application\Configuration;
6

7
use Yoast\WP\SEO\Helpers\Options_Helper;
8
use Yoast\WP\SEO\Task_List\Application\Endpoints\Endpoints_Repository;
9

10
/**
11
 * Responsible for the task list configuration.
12
 */
13
class Task_List_Configuration {
14

15
        /**
16
         * The options helper.
17
         *
18
         * @var Options_Helper
19
         */
20
        private $options_helper;
21

22
        /**
23
         * The endpoints repository.
24
         *
25
         * @var Endpoints_Repository
26
         */
27
        private $endpoints_repository;
28

29
        /**
30
         * The constructor.
31
         *
32
         * @param Options_Helper       $options_helper       The options helper.
33
         * @param Endpoints_Repository $endpoints_repository The endpoints repository.
34
         */
35
        public function __construct(
×
36
                Options_Helper $options_helper,
37
                Endpoints_Repository $endpoints_repository
38
        ) {
NEW
39
                $this->options_helper       = $options_helper;
×
NEW
40
                $this->endpoints_repository = $endpoints_repository;
×
41
        }
42

43
        /**
44
         * Returns a configuration
45
         *
46
         * @return array<string, array<string>|array<string, string|array<string, array<string, int>>>>
47
         */
48
        public function get_configuration(): array {
×
49
                $configuration = [
×
NEW
50
                        'enabled'   => $this->options_helper->get( 'enable_task_list', true ),
×
NEW
51
                        'endpoints' => $this->endpoints_repository->get_all_endpoints()->to_array(),
×
UNCOV
52
                ];
×
53

54
                return $configuration;
×
55
        }
56
}
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