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

Yoast / wordpress-seo / ed0dc6361bbe589063ae3212cc72e40816030f5f

09 Apr 2025 12:44PM UTC coverage: 54.559% (+0.1%) from 54.437%
ed0dc6361bbe589063ae3212cc72e40816030f5f

push

github

web-flow
Merge pull request #22125 from Yoast/add-tracking

Add tracking of user progress in the Site Kit setup widget

7802 of 13850 branches covered (56.33%)

Branch coverage included in aggregate %.

148 of 161 new or added lines in 10 files covered. (91.93%)

1 existing line in 1 file now uncovered.

29732 of 54945 relevant lines covered (54.11%)

43380.48 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