• 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.0
/src/Type/Enum/TwitterCardTypeEnum.php
1
<?php
2
/**
3
 * The SEO Twitter Card Type enum.
4
 *
5
 * @package WPGraphQL\RankMath\Type\Enum
6
 */
7

8
declare( strict_types = 1 );
9

10
namespace WPGraphQL\RankMath\Type\Enum;
11

12
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts\EnumType;
13

14
/**
15
 * Class - TwitterCardTypeEnum
16
 */
17
class TwitterCardTypeEnum extends EnumType {
18
        /**
19
         * {@inheritDoc}
20
         */
21
        protected static function type_name(): string {
22
                return 'TwitterCardTypeEnum';
20✔
23
        }
24

25
        /**
26
         * {@inheritDoc}
27
         */
28
        public static function get_description(): string {
UNCOV
29
                return __( 'The Twitter Card Type Enum', 'wp-graphql-rank-math' );
×
30
        }
31

32
        /**
33
         * {@inheritDoc}
34
         */
35
        public static function get_values(): array {
36
                return [
20✔
37
                        'SUMMARY'             => [
20✔
38
                                'description' => static fn () => __( 'Summary Card.', 'wp-graphql-rank-math' ),
20✔
39
                                'value'       => 'summary_card',
20✔
40
                        ],
20✔
41
                        'SUMMARY_LARGE_IMAGE' => [
20✔
42
                                'description' => static fn () => __( 'Summary Card with Large Image.', 'wp-graphql-rank-math' ),
20✔
43
                                'value'       => 'summary_large_image',
20✔
44
                        ],
20✔
45
                        'APP'                 => [
20✔
46
                                'description' => static fn () => __( 'The twitter App card', 'wp-graphql-rank-math' ),
20✔
47
                                'value'       => 'app',
20✔
48
                        ],
20✔
49
                        'PLAYER'              => [
20✔
50
                                'description' => static fn () => __( 'The twitter Player card', 'wp-graphql-rank-math' ),
20✔
51
                                'value'       => 'player',
20✔
52
                        ],
20✔
53
                ];
20✔
54
        }
55
}
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