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

overblog / GraphQLBundle / 9327433727

10 May 2024 01:06PM UTC coverage: 98.364%. Remained the same
9327433727

push

github

web-flow
Merge pull request #1184 from joesaunderson/patch-1

Don't validate fields that were not passed

2 of 2 new or added lines in 1 file covered. (100.0%)

4330 of 4402 relevant lines covered (98.36%)

40.0 hits per line

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

71.43
/src/DependencyInjection/Compiler/QueryTaggedServiceMappingPass.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Overblog\GraphQLBundle\DependencyInjection\Compiler;
6

7
use InvalidArgumentException;
8

9
use function is_string;
10
use function sprintf;
11

12
class QueryTaggedServiceMappingPass extends TaggedServiceMappingPass
13
{
14
    protected function getTagName(): string
15
    {
16
        return 'overblog_graphql.query';
42✔
17
    }
18

19
    protected function checkRequirements(string $id, array $tag): void
20
    {
21
        parent::checkRequirements($id, $tag);
42✔
22

23
        if (isset($tag['method']) && !is_string($tag['method'])) {
42✔
24
            throw new InvalidArgumentException(
×
25
                sprintf('Service tagged "%s" must have valid "method" argument.', $id)
×
26
            );
27
        }
28
    }
42✔
29

30
    protected function getResolverServiceID(): string
31
    {
32
        return 'overblog_graphql.query_resolver';
42✔
33
    }
34
}
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