@@ -40,18 +40,18 @@ discard block |
||
40 | 40 | // Mock a NewRelic instance |
41 | 41 | /** @var \PHPUnit_Framework_MockObject_MockObject|Newrelic $newRelic */ |
42 | 42 | $newRelic = $this->getMockBuilder(Newrelic::class) |
43 | - ->setMethods(['noticeError']) |
|
44 | - ->getMock(); |
|
43 | + ->setMethods(['noticeError']) |
|
44 | + ->getMock(); |
|
45 | 45 | |
46 | 46 | $graphQLError = new GraphQLError('Some query', ['foo' => 'bar'], [new \Exception()]); |
47 | 47 | |
48 | 48 | $newRelic->expects($this->once()) |
49 | - ->method('noticeError') |
|
50 | - ->with(JsonEncoder::encode([ |
|
51 | - 'query' => $graphQLError->getQuery(), |
|
52 | - 'variables' => $graphQLError->getVariables(), |
|
53 | - 'message' => '', |
|
54 | - ]), $graphQLError->getExceptions()[0]); |
|
49 | + ->method('noticeError') |
|
50 | + ->with(JsonEncoder::encode([ |
|
51 | + 'query' => $graphQLError->getQuery(), |
|
52 | + 'variables' => $graphQLError->getVariables(), |
|
53 | + 'message' => '', |
|
54 | + ]), $graphQLError->getExceptions()[0]); |
|
55 | 55 | |
56 | 56 | // Create a request with errors |
57 | 57 | $request = new Request(); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | // Check again with no errors - nothing should get reported |
64 | 64 | $newRelic->expects($this->never()) |
65 | - ->method('noticeError'); |
|
65 | + ->method('noticeError'); |
|
66 | 66 | |
67 | 67 | $this->assertMiddlewarePasses($middleware); |
68 | 68 | } |