Laravel.io
use RefreshDatabase;


    /** @test */
    public function guest_cannot_visit_dashboard()
    {

        $organization = factory(Organization::class)->create();


        $response = $this->followingRedirects()->get("/{$organization->slug}/admin/home");


        $response->assertViewIs('auth.login');

        $this->assertEquals(url()->current(), config('app.url') . "/login");

        $response->assertDontSeeText($organization->name);

    }

Please note that all pasted data is publicly available.