laravel testing http route model binding

A simple method to test Route Model Binding routes is to turn of middleware I'd recommend not globally turning them off.

You can turn off Middleware by doing $this->withoutMiddleware();

like this:

    /** @test */
    public function it_can_delete_client() {
        $this->withoutMiddleware();
        $user = factory(User::class)->create();

        $client = factory(Client::class)->create();

        $response = $this->actingAs($user)
            ->get('klienter/$client/slet');

        $response->assertSuccessful();
        $response->assertRedirect();
    }