src/Concerns/InteractsWithPages.php
protected function assertPageLoaded($uri, $message = null)
    {
        $status = $this->response->getStatusCode();

        try {
            $this->assertEquals(200, $status);
        } catch (PHPUnitException $e) {
            $message = $message ?: "A request to [{$uri}] failed. Received status code [{$status}].";

            if (isset($this->response->exception)) {
                throw new HttpException($message, 0, $this->response->exception);
            }

            throw new HttpException($message);
        }
    }
protected function assertPageLoaded($uri, $message = null)
    {
        $status = $this->response->getStatusCode();

        try {
            $this->assertEquals(200, $status);
        } catch (PHPUnitException $e) {
            $message = $message ?: "A request to [{$uri}] failed. Received status code [{$status}].";

            if (isset($this->response->exception)) {
                throw new HttpException($message, 0, $this->response->exception);
            }

            throw new HttpException($message);
        }
    }
protected function assertPageLoaded ( $ uri , $ message = null ) { $ status = $ this -> response -> getStatusCode ( ) ; try { $ this -> assertEquals ( 200 , $ status ) ; } catch ( PHPUnitException $ e ) { $ message = $ message ? : "A request to [{$uri}] failed. Received status code [{$status}]." ; if ( isset ( $ this -> response -> exception ) ) { throw new HttpException ( $ message , 0 , $ this -> response -> exception ) ; } throw new HttpException ( $ message ) ; } }
Assert that a given page successfully loaded.

@param  string  $uri
@param  string|null  $message
@return void

@throws \Laravel\BrowserKitTesting\HttpException
Assert that a given page successfully loaded .