Skip to content

Commit 12b1b14

Browse files
committed
- update test
1 parent 82ec723 commit 12b1b14

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

tests/wpunit/InterfaceTest.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -771,8 +771,7 @@ public function testDebugMessageNotShownIfInterfaceFieldHasArgs() {
771771
'type' => 'String',
772772
'args' => [
773773
'interfaceArg' => [
774-
'type' => 'String',
775-
'defaultValue' => 'interfaceArg',
774+
'type' => 'Boolean',
776775
],
777776
],
778777
'resolve' => function() {
@@ -794,12 +793,6 @@ public function testDebugMessageNotShownIfInterfaceFieldHasArgs() {
794793
// so it should inherit the arguments from the interface
795794
'fieldWithArgs' => [
796795
'type' => 'String',
797-
'args' => [
798-
'anotherInterfaceArg' => [
799-
'type' => 'String',
800-
'defaultValue' => 'anotherInterfaceArg',
801-
],
802-
],
803796
'resolve' => function() {
804797
return null;
805798
},
@@ -831,14 +824,12 @@ public function testDebugMessageNotShownIfInterfaceFieldHasArgs() {
831824

832825
$query = 'query {
833826
testField {
834-
fieldWithArgs(interfaceArg: "test")
827+
fieldWithArgs(interfaceArg: true )
835828
}
836829
}';
837830

838831
$actual = $this->graphql( [ 'query' => $query ] );
839832

840-
841-
842833
$this->assertEmpty( $actual['extensions']['debug'], 'The interface should be implemented with no debug messages.' );
843834
$this->assertQuerySuccessful(
844835
$actual,

0 commit comments

Comments
 (0)