graphQL(' query { me { id } } ', ); $response->assertOk(); $response->assertJson([ 'data' => [ 'me' => null, ], ]); }); test('authenticated returns user', function (): void { $user = User::factory()->createOne(); actingAs($user); $response = $this->graphQL(' query { me { id } } '); $response->assertOk(); $response->assertJson([ 'data' => [ 'me' => [ 'id' => $user->getKey(), ], ], ]); });