When I try to test my api with the following code:

```
$client = new Client();
        $res = $client->request('POST', $this->url.'/api/v1/school/1', [
            'form_params' => [
                'currentUserId' => 1
            ]
        ]); //line 22

        $obj = json_decode($res->getBody());
        $result = $obj->{'result'}->{'message'};
        $this->assertEquals('Error', $result);

```

It is not going further then line 22 (see comment). When I post to the same url in postman the result is (with status code 401):

```
{
  "result": {
    "message": "Error",
    "school": "Error show school"
  }
}

```

But why is it not going further in my unit test? when I make 200 as response it is going further!