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

Yoast / wordpress-seo / 7170dd78a78ab85db5222ef8bee2f5be12ff5a01

19 Nov 2025 02:47PM UTC coverage: 52.694% (-0.02%) from 52.717%
7170dd78a78ab85db5222ef8bee2f5be12ff5a01

Pull #22731

github

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

8307 of 15558 branches covered (53.39%)

Branch coverage included in aggregate %.

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

4 existing lines in 4 files now uncovered.

31810 of 60574 relevant lines covered (52.51%)

47601.39 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