tests/TestCase.php
/**
     * Set up for feature tests (migrations).
     */
Set up for feature tests (migrations).
Set up for feature tests ( migrations ) .
protected function featureSetUp(): void
    {
        $this->loadMigrations();
        $this->withFactories(__DIR__.'/../src/Factories');
        if (!\Route::has('login')) {
            \Route::get('login', function () {
            })->name('login');
        }
    }
protected function featureSetUp ( ) : void { $ this -> loadMigrations ( ) ; $ this -> withFactories ( __DIR__ . '/../src/Factories' ) ; if ( ! \ Route :: has ( 'login' ) ) { \ Route :: get ( 'login' , function ( ) { } ) -> name ( 'login' ) ; } }
Set up for feature tests (migrations).
Set up for feature tests ( migrations ) .
// Need to define a login route for feature tests.