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

AxeWP / wp-graphql-rank-math / 14814451099

03 May 2025 08:44PM UTC coverage: 86.429% (-2.0%) from 88.44%
14814451099

Pull #121

github

web-flow
Merge a9bfcb8d1 into 3bd3ede8c
Pull Request #121: dev: add support for lazy-loading `description`/`deprecationReason` config values

356 of 366 new or added lines in 65 files covered. (97.27%)

60 existing lines in 60 files now uncovered.

2541 of 2940 relevant lines covered (86.43%)

11.01 hits per line

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

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

8
declare( strict_types = 1 );
9

10
namespace WPGraphQL\RankMath\Type\WPObject;
11

12
use WPGraphQL\RankMath\Type\WPObject\Settings\General;
13
use WPGraphQL\RankMath\Type\WPObject\Settings\Meta;
14
use WPGraphQL\RankMath\Type\WPObject\Settings\Sitemap;
15
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts\ObjectType;
16

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

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

35
        /**
36
         * {@inheritDoc}
37
         */
38
        public static function get_fields(): array {
39
                return [
19✔
40
                        'general' => [
19✔
41
                                'type'        => General::get_type_name(),
19✔
42
                                'description' => static fn () => __( 'General settings.', 'wp-graphql-rank-math' ),
19✔
43
                        ],
19✔
44
                        'meta'    => [
19✔
45
                                'type'        => Meta::get_type_name(),
19✔
46
                                'description' => static fn () => __( 'Meta settings.', 'wp-graphql-rank-math' ),
19✔
47
                        ],
19✔
48
                        'sitemap' => [
19✔
49
                                'type'        => Sitemap::get_type_name(),
19✔
50
                                'description' => static fn () => __( 'Sitemap settings.', 'wp-graphql-rank-math' ),
19✔
51
                        ],
19✔
52
                ];
19✔
53
        }
54
}
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