vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestResponse.php
/**
     * Assert that the response has a successful status code.
     *
     * @return $this
     */
Assert that the response has a successful status code.
@return $this
Assert that the response has a successful status code . @return $this
public function assertSuccessful()
    {
        PHPUnit::assertTrue(
            $this->isSuccessful(),
            'Response status code ['.$this->getStatusCode().'] is not a successful status code.'
        );
        return $this;
    }
public function assertSuccessful ( ) { PHPUnit :: assertTrue ( $ this -> isSuccessful ( ) , 'Response status code [' . $ this -> getStatusCode ( ) . '] is not a successful status code.' ) ; return $ this ; }
Assert that the response has a successful status code.
Assert that the response has a successful status code .