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

AxeWP / wp-graphql-rank-math / 15507492505

07 Jun 2025 11:44AM UTC coverage: 86.429% (-2.0%) from 88.44%
15507492505

push

github

web-flow
dev: add support for lazy-loading `description`/`deprecationReason` config values (#121)

* chore: update strauss and deps

* dev: use callable descriptions/deprecations

* fix: dont prefix `NodeWithRankMathSeo`

* chore: fix backcompat on connections

* chore: update dep

* chore: update deps

* tests: ensure schema can build

* chore: update and cleanup

* fix: regenerate autoloader

357 of 367 new or added lines in 66 files covered. (97.28%)

60 existing lines in 60 files now uncovered.

2541 of 2940 relevant lines covered (86.43%)

11.49 hits per line

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

97.22
/src/Type/WPObject/Settings/General.php
1
<?php
2
/**
3
 * The Rank Math general settings GraphQL Object.
4
 *
5
 * @package WPGraphQL\RankMath\Type\WPObject
6
 */
7

8
declare( strict_types = 1 );
9

10
namespace WPGraphQL\RankMath\Type\WPObject\Settings;
11

12
use WPGraphQL\RankMath\Type\WPObject\Settings\General\BreadcrumbsConfig;
13
use WPGraphQL\RankMath\Type\WPObject\Settings\General\FrontendSeoScore;
14
use WPGraphQL\RankMath\Type\WPObject\Settings\General\Links;
15
use WPGraphQL\RankMath\Type\WPObject\Settings\General\Webmaster;
16
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts\ObjectType;
17

18
/**
19
 * Class - General
20
 */
21
class General extends ObjectType {
22
        /**
23
         * {@inheritDoc}
24
         */
25
        protected static function type_name(): string {
26
                return 'General';
20✔
27
        }
28

29
        /**
30
         * {@inheritDoc}
31
         */
32
        public static function get_description(): string {
UNCOV
33
                return __( 'The RankMath SEO general site settings', 'wp-graphql-rank-math' );
×
34
        }
35

36
        /**
37
         * {@inheritDoc}
38
         */
39
        public static function get_fields(): array {
40
                return [
20✔
41
                        'breadcrumbs'         => [
20✔
42
                                'type'        => BreadcrumbsConfig::get_type_name(),
20✔
43
                                'description' => static fn () => __( 'Breadcrumbs settings.', 'wp-graphql-rank-math' ),
20✔
44
                        ],
20✔
45
                        'hasBreadcrumbs'      => [
20✔
46
                                'type'        => 'Boolean',
20✔
47
                                'description' => static fn () => __( 'Whether RankMath breadcrumbs are enabled.', 'wp-graphql-rank-math' ),
20✔
48
                        ],
20✔
49
                        'links'               => [
20✔
50
                                'type'        => Links::get_type_name(),
20✔
51
                                'description' => static fn () => __( 'Link settings.', 'wp-graphql-rank-math' ),
20✔
52
                        ],
20✔
53
                        'webmaster'           => [
20✔
54
                                'type'        => Webmaster::get_type_name(),
20✔
55
                                'description' => static fn () => __( 'Webmaster Tools settings.', 'wp-graphql-rank-math' ),
20✔
56
                        ],
20✔
57
                        'hasFrontendSeoScore' => [
20✔
58
                                'type'        => 'Boolean',
20✔
59
                                'description' => static fn () => __( 'Whether to display the calculated SEO Score as a badge on the frontend. It can be disabled for specific posts in the post editor.', 'wp-graphql-rank-math' ),
20✔
60
                        ],
20✔
61
                        'frontendSeoScore'    => [
20✔
62
                                'type'        => FrontendSeoScore::get_type_name(),
20✔
63
                                'description' => static fn () => __( 'Frontend SEO score settings.', 'wp-graphql-rank-math' ),
20✔
64
                        ],
20✔
65
                        'rssBeforeContent'    => [
20✔
66
                                'type'        => 'String',
20✔
67
                                'description' => static fn () => __( 'The content to add before each post in your site feeds', 'wp-graphql-rank-math' ),
20✔
68
                        ],
20✔
69
                        'rssAfterContent'     => [
20✔
70
                                'type'        => 'String',
20✔
71
                                'description' => static fn () => __( 'The content to add after each post in your site feeds', 'wp-graphql-rank-math' ),
20✔
72
                        ],
20✔
73
                ];
20✔
74
        }
75
}
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

© 2025 Coveralls, Inc