tests/Feature/UserControllerTest.php
/**
     * A basic feature test example.
     *
     * @return void
     */
A basic feature test example.
@return void
A basic feature test example . @return void
public function testUserIndex()
    {
        $response = $this->get('/usuario');
        $response->assertStatus(200);
        $response->assertViewIs('usuario.index');
        $response->assertViewHas('usuarios');
    }
public function testUserIndex ( ) { $ response = $ this -> get ( '/usuario' ) ; $ response -> assertStatus ( 200 ) ; $ response -> assertViewIs ( 'usuario.index' ) ; $ response -> assertViewHas ( 'usuarios' ) ; }
A basic feature test example.
A basic feature test example .