src/Traits/MakesApiRequests.php
protected function seeSuccessData($data = null)
    {
        collect($data)->each(function ($value, $key) {
            if (is_array($value)) {
                $this->seeSuccessData($value);
            } else {
                $this->seeJson([$key => $value]);
            }
        });

        return $this;
    }
protected function seeSuccessData($data = null)
    {
        collect($data)->each(function ($value, $key) {
            if (is_array($value)) {
                $this->seeSuccessData($value);
            } else {
                $this->seeJson([$key => $value]);
            }
        });

        return $this;
    }
protected function seeSuccessData ( $ data = null ) { collect ( $ data ) -> each ( function ( $ value , $ key ) { if ( is_array ( $ value ) ) { $ this -> seeSuccessData ( $ value ) ; } else { $ this -> seeJson ( [ $ key => $ value ] ) ; } } ) ; return $ this ; }
Assert that the response data contains given values.

@param  mixed $data
@return $this
Assert that the response data contains given values .