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

wp-graphql / wp-graphql-woocommerce / 23675172456

28 Mar 2026 02:10AM UTC coverage: 70.983% (-18.4%) from 89.424%
23675172456

Pull #1003

github

web-flow
Merge 05339093d into 6fb7b226f
Pull Request #1003: devops: WC email template tests, COT cursor HPOS fix, checkout account auth

71 of 81 new or added lines in 5 files covered. (87.65%)

3346 existing lines in 124 files now uncovered.

12576 of 17717 relevant lines covered (70.98%)

55.38 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/includes/class-admin.php
1
<?php
2
/**
3
 * Initializes a WooGraphQL Pro admin settings.
4
 *
5
 * @package WPGraphQL\WooCommerce\Pro
6
 * @since 1.0.0
7
 */
8

9
namespace WPGraphQL\WooCommerce;
10

11
use WPGraphQL\Admin\Settings\Settings;
12
use WPGraphQL\WooCommerce\Admin\General;
13

14
/**
15
 * Class Admin
16
 */
17
class Admin {
18
        /**
19
         * Admin constructor
20
         */
21
        public function __construct() {
UNCOV
22
                add_action( 'graphql_register_settings', [ $this, 'register_settings' ] );
×
23
        }
24

25
        /**
26
         * Registers the WPGraphQL for WooCommerce Settings tab.
27
         *
28
         * @param \WPGraphQL\Admin\Settings\Settings $manager  Settings Manager.
29
         * @return void
30
         */
31
        public function register_settings( Settings $manager ) {
UNCOV
32
                $manager->settings_api->register_section(
×
UNCOV
33
                        'woographql_settings',
×
UNCOV
34
                        [ 'title' => __( 'WooCommerce', 'wp-graphql-woocommerce' ) ]
×
UNCOV
35
                );
×
36

UNCOV
37
                $manager->settings_api->register_fields(
×
UNCOV
38
                        'woographql_settings',
×
UNCOV
39
                        General::get_fields()
×
UNCOV
40
                );
×
41
        }
42
}
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