• 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

91.67
/src/Type/WPInterface/MetaSettingWithRobots.php
1
<?php
2
/**
3
 * Interface for meta settings with robots fields.
4
 *
5
 * @package WPGraphQL\RankMath\Type\WPInterface
6
 */
7

8
declare( strict_types = 1 );
9

10
namespace WPGraphQL\RankMath\Type\WPInterface;
11

12
use WPGraphQL\RankMath\Type\Enum\RobotsMetaValueEnum;
13
use WPGraphQL\RankMath\Type\WPObject\AdvancedRobotsMeta;
14
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts\InterfaceType;
15

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

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

34
        /**
35
         * {@inheritDoc}
36
         */
37
        public static function get_fields(): array {
38
                return [
20✔
39
                        'advancedRobotsMeta' => [
20✔
40
                                'type'        => AdvancedRobotsMeta::get_type_name(),
20✔
41
                                'description' => static fn () => __( 'Advanced robots meta tag settings.', 'wp-graphql-rank-math' ),
20✔
42
                        ],
20✔
43
                        'robotsMeta'         => [
20✔
44
                                'type'        => [ 'list_of' => RobotsMetaValueEnum::get_type_name() ],
20✔
45
                                'description' => static fn () => __( 'Custom values for robots meta tag.', 'wp-graphql-rank-math' ),
20✔
46
                        ],
20✔
47
                ];
20✔
48
        }
49
}
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