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

Yoast / wordpress-seo / 329e7257b699570577e9617a4ea672714686da15

26 Jan 2026 07:52AM UTC coverage: 52.923% (-0.4%) from 53.35%
329e7257b699570577e9617a4ea672714686da15

Pull #22888

github

web-flow
Merge 00d428c6c into ff2f33de1
Pull Request #22888: Add integration tests for analytics adapter

8393 of 15825 branches covered (53.04%)

Branch coverage included in aggregate %.

32383 of 61223 relevant lines covered (52.89%)

47097.05 hits per line

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

76.92
/src/introductions/application/google-docs-addon-upsell.php
1
<?php
2

3
namespace Yoast\WP\SEO\Introductions\Application;
4

5
use Yoast\WP\SEO\Helpers\Current_Page_Helper;
6
use Yoast\WP\SEO\Helpers\Product_Helper;
7
use Yoast\WP\SEO\Helpers\User_Helper;
8
use Yoast\WP\SEO\Introductions\Domain\Introduction_Interface;
9

10
/**
11
 * Represents the introduction for the Google Docs Addon feature.
12
 */
13
class Google_Docs_Addon_Upsell implements Introduction_Interface {
14

15
        use User_Allowed_Trait;
16

17
        public const ID = 'google-docs-addon-upsell';
18

19
        /**
20
         * Holds the user helper.
21
         *
22
         * @var User_Helper
23
         */
24
        private $user_helper;
25

26
        /**
27
         * Holds the product helper.
28
         *
29
         * @var Product_Helper
30
         */
31
        private $product_helper;
32

33
        /**
34
         * Holds the current page helper.
35
         *
36
         * @var Current_Page_Helper
37
         */
38
        private $current_page_helper;
39

40
        /**
41
         * Constructs the introduction.
42
         *
43
         * @param User_Helper         $user_helper         The user helper.
44
         * @param Product_Helper      $product_helper      The product helper.
45
         * @param Current_Page_Helper $current_page_helper The current page helper.
46
         */
47
        public function __construct( User_Helper $user_helper, Product_Helper $product_helper, Current_Page_Helper $current_page_helper ) {
2✔
48
                $this->user_helper         = $user_helper;
2✔
49
                $this->product_helper      = $product_helper;
2✔
50
                $this->current_page_helper = $current_page_helper;
2✔
51
        }
52

53
        /**
54
         * Returns the ID.
55
         *
56
         * @return string The ID.
57
         */
58
        public function get_id() {
2✔
59
                return self::ID;
2✔
60
        }
61

62
        /**
63
         * Returns the name of the introduction.
64
         *
65
         * @return string The name.
66
         */
67
        public function get_name() {
×
68
                \_deprecated_function( __METHOD__, 'Yoast SEO Premium 21.6', 'Please use get_id() instead' );
×
69

70
                return self::ID;
×
71
        }
72

73
        /**
74
         * Returns the requested pagination priority. Lower means earlier.
75
         *
76
         * @return int The priority.
77
         */
78
        public function get_priority() {
2✔
79
                return 20;
2✔
80
        }
81

82
        /**
83
         * Returns whether this introduction should show.
84
         * We no longer show this introduction, so we always return false.
85
         *
86
         * @return bool Whether this introduction should show.
87
         */
88
        public function should_show() {
2✔
89
                return false;
2✔
90
        }
91
}
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