• 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

98.33
/src/Type/WPObject/Settings/Meta.php
1
<?php
2
/**
3
 * The Rank Math titles and meta 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\Meta\AuthorArchiveMeta;
13
use WPGraphQL\RankMath\Type\WPObject\Settings\Meta\ContentTypeMeta;
14
use WPGraphQL\RankMath\Type\WPObject\Settings\Meta\DateArchiveMeta;
15
use WPGraphQL\RankMath\Type\WPObject\Settings\Meta\GlobalMeta;
16
use WPGraphQL\RankMath\Type\WPObject\Settings\Meta\HomepageMeta;
17
use WPGraphQL\RankMath\Type\WPObject\Settings\Meta\LocalMeta;
18
use WPGraphQL\RankMath\Type\WPObject\Settings\Meta\SocialMeta;
19
use WPGraphQL\RankMath\Type\WPObject\Settings\Meta\TaxonomyMeta;
20
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts\ObjectType;
21

22
/**
23
 * Class - Meta
24
 */
25
class Meta extends ObjectType {
26
        /**
27
         * {@inheritDoc}
28
         */
29
        protected static function type_name(): string {
30
                return 'Meta';
20✔
31
        }
32

33
        /**
34
         * {@inheritDoc}
35
         */
36
        public static function get_description(): string {
UNCOV
37
                return __( 'The RankMath SEO titles and meta site settings', 'wp-graphql-rank-math' );
×
38
        }
39

40
        /**
41
         * {@inheritDoc}
42
         */
43
        public static function get_fields(): array {
44
                return [
20✔
45
                        'authorArchives'               => [
20✔
46
                                'type'        => AuthorArchiveMeta::get_type_name(),
20✔
47
                                'description' => static fn () => __( 'Author Archive settings.', 'wp-graphql-rank-math' ),
20✔
48
                        ],
20✔
49
                        'contentTypes'                 => [
20✔
50
                                'type'        => ContentTypeMeta::get_type_name(),
20✔
51
                                'description' => static fn () => __( 'Content type settings.', 'wp-graphql-rank-math' ),
20✔
52
                        ],
20✔
53
                        'taxonomies'                   => [
20✔
54
                                'type'        => TaxonomyMeta::get_type_name(),
20✔
55
                                'description' => static fn () => __( 'Taxonomy settings.', 'wp-graphql-rank-math' ),
20✔
56
                        ],
20✔
57
                        'dateArchives'                 => [
20✔
58
                                'type'        => DateArchiveMeta::get_type_name(),
20✔
59
                                'description' => static fn () => __( 'Date Archive settings.', 'wp-graphql-rank-math' ),
20✔
60
                        ],
20✔
61
                        'global'                       => [
20✔
62
                                'type'        => GlobalMeta::get_type_name(),
20✔
63
                                'description' => static fn () => __( 'Global settings.', 'wp-graphql-rank-math' ),
20✔
64
                        ],
20✔
65
                        'local'                        => [
20✔
66
                                'type'        => LocalMeta::get_type_name(),
20✔
67
                                'description' => static fn () => __( 'Local settings.', 'wp-graphql-rank-math' ),
20✔
68
                        ],
20✔
69
                        'social'                       => [
20✔
70
                                'type'        => SocialMeta::get_type_name(),
20✔
71
                                'description' => static fn () => __( 'Social settings.', 'wp-graphql-rank-math' ),
20✔
72
                        ],
20✔
73
                        'homepage'                     => [
20✔
74
                                'type'        => HomepageMeta::get_type_name(),
20✔
75
                                'description' => static fn () => __( 'Homepage settings. Only used is the Homepage is set to display a list of posts.', 'wp-graphql-rank-math' ),
20✔
76
                        ],
20✔
77
                        'notFoundTitle'                => [
20✔
78
                                'type'        => 'String',
20✔
79
                                'description' => static fn () => __( 'Title tag on 404 Not Found error page.', 'wp-graphql-rank-math' ),
20✔
80
                        ],
20✔
81
                        'searchTitle'                  => [
20✔
82
                                'type'        => 'String',
20✔
83
                                'description' => static fn () => __( 'Title tag on search results page.', 'wp-graphql-rank-math' ),
20✔
84
                        ],
20✔
85
                        'shouldIndexSearch'            => [
20✔
86
                                'type'        => 'Boolean',
20✔
87
                                'description' => static fn () => __( 'Whether to index search result pages.', 'wp-graphql-rank-math' ),
20✔
88
                        ],
20✔
89
                        'shouldIndexPaginatedPages'    => [
20✔
90
                                'type'        => 'Boolean',
20✔
91
                                'description' => static fn () => __( 'Whether to index /page/2 and further of any archive.', 'wp-graphql-rank-math' ),
20✔
92
                        ],
20✔
93
                        'shouldIndexArchiveSubpages'   => [
20✔
94
                                'type'        => 'Boolean',
20✔
95
                                'description' => static fn () => __( 'Whether to index paginated archive pages from getting.', 'wp-graphql-rank-math' ),
20✔
96
                        ],
20✔
97
                        'shouldIndexPasswordProtected' => [
20✔
98
                                'type'        => 'Boolean',
20✔
99
                                'description' => static fn () => __( 'Whether to index password protected pages and posts.', 'wp-graphql-rank-math' ),
20✔
100
                        ],
20✔
101
                ];
20✔
102
        }
103
}
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