• 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

95.65
/src/Type/WPObject/Settings/Meta/LocalMeta.php
1
<?php
2
/**
3
 * The LocalMeta GraphQL object.
4
 *
5
 * @package WPGraphQL\RankMath\Type\WPObject\Settings\Meta
6
 */
7

8
declare( strict_types = 1 );
9

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

12
use WPGraphQL\AppContext;
13
use WPGraphQL\RankMath\Type\Enum\KnowledgeGraphTypeEnum;
14
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts\ObjectType;
15

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

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

34
        /**
35
         * {@inheritDoc}
36
         */
37
        public static function get_fields(): array {
38
                return [
20✔
39
                        'type' => [
20✔
40
                                'type'        => KnowledgeGraphTypeEnum::get_type_name(),
20✔
41
                                'description' => static fn () => __( 'Whether the site represents a person or an organization.', 'wp-graphql-rank-math' ),
20✔
42
                        ],
20✔
43
                        'name' => [
20✔
44
                                'type'        => 'String',
20✔
45
                                'description' => static fn () => __( 'Your name or company name to be used in Google\'s Knowledge Graph', 'wp-graphql-rank-math' ),
20✔
46
                        ],
20✔
47
                        'logo' => [
20✔
48
                                'type'        => 'MediaItem',
20✔
49
                                'description' => static fn () => __( 'The logo to be used in the Google\'s Knowledge Graph.', 'wp-graphql-rank-math' ),
20✔
50
                                'resolve'     => static function ( $source, array $args, AppContext $context ) {
20✔
51
                                        return ! empty( $source['logoId'] ) ? $context->get_loader( 'post' )->load_deferred( $source['logoId'] ) : null;
1✔
52
                                },
20✔
53
                        ],
20✔
54
                        'url'  => [
20✔
55
                                'type'        => 'String',
20✔
56
                                'description' => static fn () => __( 'URL of the item.', 'wp-graphql-rank-math' ),
20✔
57
                        ],
20✔
58
                ];
20✔
59
        }
60
}
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