create(); $this->be($collaborator, 'collaborators'); $this->post(route('collaborators.logout')) ->assertRedirect(route('collaborators.dashboard')); $this->assertFalse(Auth::check('collaborators')); } /** @test */ public function an_unauthenticated_collaborator_can_not_log_out() { $this->post(route('collaborators.logout')) ->assertRedirect(route('collaborators.login')); $this->assertFalse(Auth::check('collaborators')); } }