Skip to content

Commit

Permalink
Code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
LastDragon-ru committed Mar 6, 2024
1 parent 9c930b2 commit a7c9c9a
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions packages/graphql/src/Builder/Types/InputObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use LastDragon_ru\LaraASP\GraphQL\Builder\Sources\ObjectFieldSource;
use LastDragon_ru\LaraASP\GraphQL\Builder\Sources\ObjectSource;
use LastDragon_ru\LaraASP\GraphQL\Package;
use LastDragon_ru\LaraASP\GraphQL\Testing\Package\Directives\TestDirective;
use LastDragon_ru\LaraASP\GraphQL\Testing\Package\TestCase;
use Mockery;
use Nuwave\Lighthouse\Execution\Arguments\Argument;
Expand Down Expand Up @@ -93,12 +94,7 @@ public static function dataProviderIsFieldDirectiveAllowed(): array {
[
// empty
],
new class () implements Directive {
#[Override]
public static function definition(): string {
throw new Exception('Should not be called');
}
},
new TestDirective(),
(new Context())->override([
HandlerContextImplicit::class => new HandlerContextImplicit(true),
]),
Expand All @@ -108,12 +104,7 @@ public static function definition(): string {
[
Directive::class,
],
new class () implements Directive {
#[Override]
public static function definition(): string {
throw new Exception('Should not be called');
}
},
new TestDirective(),
(new Context())->override([
HandlerContextImplicit::class => new HandlerContextImplicit(true),
]),
Expand All @@ -123,12 +114,7 @@ public static function definition(): string {
[
// empty
],
new class () implements Directive {
#[Override]
public static function definition(): string {
throw new Exception('Should not be called');
}
},
new TestDirective(),
(new Context())->override([
HandlerContextImplicit::class => new HandlerContextImplicit(false),
]),
Expand Down

0 comments on commit a7c9c9a

Please sign in to comment.