protected function seeError(string $error, int $status = null)
    {
        if (! is_null($status)) {
            $this->seeStatusCode($status);
        }

        if ($this->app->config->get('responder.status_code')) {
            $this->seeJson([
                'status' => $status
            ]);
        }

        return $this->seeJson([
            'success' => false
        ])->seeJsonSubset([
            'error' => [
                'code' => $error
            ]
        ]);
    }
protected function seeError(string $error, int $status = null)
    {
        if (! is_null($status)) {
            $this->seeStatusCode($status);
        }

        if ($this->app->config->get('responder.status_code')) {
            $this->seeJson([
                'status' => $status
            ]);
        }

        return $this->seeJson([
            'success' => false
        ])->seeJsonSubset([
            'error' => [
                'code' => $error
            ]
        ]);
    }
protected function seeError ( string $ error , int $ status = null ) { if ( ! is_null ( $ status ) ) { $ this -> seeStatusCode ( $ status ) ; } if ( $ this -> app -> config -> get ( 'responder.status_code' ) ) { $ this -> seeJson ( [ 'status' => $ status ] ) ; } return $ this -> seeJson ( [ 'success' => false ] ) -> seeJsonSubset ( [ 'error' => [ 'code' => $ error ] ] ) ; }
Assert that the response is a valid error response.

@param  string   $error
@param  int|null $status
@return $this
Assert that the response is a valid error response .