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

Yoast / wordpress-seo / 4219337b405746bc85dcd98d59a4f0c481d96048

03 Apr 2025 02:57PM UTC coverage: 54.506% (+0.07%) from 54.437%
4219337b405746bc85dcd98d59a4f0c481d96048

Pull #22125

github

web-flow
Merge d4122c4ff into 96c815bb6
Pull Request #22125: Add tracking of user progress in the Site Kit setup widged

7801 of 13850 branches covered (56.32%)

Branch coverage included in aggregate %.

124 of 150 new or added lines in 10 files covered. (82.67%)

1 existing line in 1 file now uncovered.

29688 of 54930 relevant lines covered (54.05%)

43392.31 hits per line

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

0.0
/src/dashboard/infrastructure/endpoints/setup-steps-tracking-endpoint.php
1
<?php
2
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
3
namespace Yoast\WP\SEO\Dashboard\Infrastructure\Endpoints;
4

5
use Exception;
6
use Yoast\WP\SEO\Dashboard\Domain\Endpoint\Endpoint_Interface;
7
use Yoast\WP\SEO\Dashboard\User_Interface\Tracking\Setup_Steps_Tracking_Route;
8

9
/**
10
 * Represents the setup steps tracking endpoint.
11
 */
12
class Setup_Steps_Tracking_Endpoint implements Endpoint_Interface {
13

14
        /**
15
         * Gets the name.
16
         *
17
         * @return string
18
         */
NEW
19
        public function get_name(): string {
×
NEW
20
                return 'setupStepsTracking';
×
21
        }
22

23
        /**
24
         * Gets the namespace.
25
         *
26
         * @return string
27
         */
NEW
28
        public function get_namespace(): string {
×
NEW
29
                return Setup_Steps_Tracking_Route::ROUTE_NAMESPACE;
×
30
        }
31

32
        /**
33
         * Gets the route.
34
         *
35
         * @throws Exception If the route prefix is not overwritten this throws.
36
         * @return string
37
         */
NEW
38
        public function get_route(): string {
×
NEW
39
                return Setup_Steps_Tracking_Route::ROUTE_PREFIX;
×
40
        }
41

42
        /**
43
         * Gets the URL.
44
         *
45
         * @return string
46
         */
NEW
47
        public function get_url(): string {
×
NEW
48
                return \rest_url( $this->get_namespace() . $this->get_route() );
×
49
        }
50
}
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