We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b91a2f6 commit 46a38eeCopy full SHA for 46a38ee
test/unit/APIResourceTest.php
@@ -113,11 +113,13 @@ public function testAdapter404Exception() {
113
114
public function testAdapter4XXException() {
115
try {
116
+ $testBody = ['errors'=>['my'=>'test']];
117
$responseMock = Mockery::mock();
118
$this->sparkPostMock->httpAdapter->shouldReceive('send')->
119
once()->
120
andReturn($responseMock);
121
$responseMock->shouldReceive('getStatusCode')->andReturn(400);
122
+ $responseMock->shouldReceive('getBody')->andReturn(json_encode($testBody));
123
124
$this->resource->get('test');
125
}
0 commit comments