• 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

96.43
/src/Type/WPObject/Settings/Meta/AuthorArchiveMeta.php
1
<?php
2
/**
3
 * The AuthorArchiveMeta 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\RankMath\Type\WPInterface\MetaSettingWithArchive;
13
use WPGraphQL\RankMath\Type\WPInterface\MetaSettingWithRobots;
14
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts\ObjectType;
15
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Interfaces\TypeWithInterfaces;
16

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

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

35
        /**
36
         * {@inheritDoc}
37
         */
38
        public static function get_interfaces(): array {
39
                return [
20✔
40
                        MetaSettingWithArchive::get_type_name(),
20✔
41
                        MetaSettingWithRobots::get_type_name(),
20✔
42
                ];
20✔
43
        }
44

45
        /**
46
         * {@inheritDoc}
47
         */
48
        public static function get_fields(): array {
49
                return [
20✔
50
                        'baseSlug'                => [
20✔
51
                                'type'        => 'String',
20✔
52
                                'description' => static fn () => __( 'Change the `/author/` part in author archive URLs.', 'wp-graphql-rank-math' ),
20✔
53
                        ],
20✔
54
                        'hasArchives'             => [
20✔
55
                                'type'        => 'Boolean',
20✔
56
                                'description' => static fn () => __( 'Whether author archives are enabled.', 'wp-graphql-rank-math' ),
20✔
57
                        ],
20✔
58
                        'hasCustomRobotsMeta'     => [
20✔
59
                                'type'        => 'Boolean',
20✔
60
                                'description' => static fn () => __( 'Whether custom robots meta for author page are set. Otherwise the default meta will be used, as set in the Global Meta tab.', 'wp-graphql-rank-math' ),
20✔
61
                        ],
20✔
62
                        'hasSlackEnhancedSharing' => [
20✔
63
                                'type'        => 'Boolean',
20✔
64
                                'description' => static fn () => __( 'Whether to show additional information (name & total number of posts) when an author archive is shared on Slack.', 'wp-graphql-rank-math' ),
20✔
65
                        ],
20✔
66
                        'hasSeoControls'          => [
20✔
67
                                'type'        => 'Boolean',
20✔
68
                                'description' => static fn () => __( 'Whether the SEO Controls meta box for user profile pages is enabled.', 'wp-graphql-rank-math' ),
20✔
69
                        ],
20✔
70
                ];
20✔
71
        }
72
}
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