File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -125,10 +125,17 @@ public function testWithSelectFieldsAndModelAndAlias(): void
125
125
126
126
$ this ->assertEquals ($ response ->getStatusCode (), 200 );
127
127
128
- $ result = $ response ->json ();
128
+ $ expectedResult = [
129
+ 'data ' => [
130
+ 'postWithSelectFieldsAndModelAndAlias ' => [
131
+ 'id ' => '1 ' ,
132
+ 'description ' => 'Description of the post ' ,
133
+ ],
134
+ ],
135
+ ];
129
136
130
- $ this ->assertNull ( $ result [ ' data ' ][ ' postWithSelectFieldsAndModelAndAlias ' ] );
131
- $ this ->assertSame ( ' Cannot return null for non-nullable field PostWithModelAndAlias.description. ' , $ result [ ' errors ' ][ 0 ][ ' debugMessage ' ] );
137
+ $ this ->assertEquals ( $ response -> getStatusCode (), 200 );
138
+ $ this ->assertEquals ( $ expectedResult , $ response -> json () );
132
139
}
133
140
134
141
public function testWithSelectFieldsNoModel (): void
You can’t perform that action at this time.
0 commit comments