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

AxeWP / wp-graphql-rank-math / 14947513062

10 May 2025 05:19PM UTC coverage: 86.429% (-2.0%) from 88.44%
14947513062

Pull #121

github

web-flow
Merge f69ff5d7f 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

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';
19✔
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 [
19✔
39
                        'advancedRobotsMeta' => [
19✔
40
                                'type'        => AdvancedRobotsMeta::get_type_name(),
19✔
41
                                'description' => static fn () => __( 'Advanced robots meta tag settings.', 'wp-graphql-rank-math' ),
19✔
42
                        ],
19✔
43
                        'robotsMeta'         => [
19✔
44
                                'type'        => [ 'list_of' => RobotsMetaValueEnum::get_type_name() ],
19✔
45
                                'description' => static fn () => __( 'Custom values for robots meta tag.', 'wp-graphql-rank-math' ),
19✔
46
                        ],
19✔
47
                ];
19✔
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

© 2026 Coveralls, Inc