The route function generates a URL for a given named route:
<?php $url = route('route.name');
<?php     {

        $certificates = Certificate::factory()->count(3)->create();



        $response = $this->get(route('certificate.index'));



        $response->assertOk();

        $response->assertJsonStructure([]);
<?php         $document = $this->faker->word;

        $expiry_date = $this->faker->date();



        $response = $this->post(route('certificate.store'), [

            'name' => $name,

            'certificate_type_id' => $certificate_type->id,

            'reference' => $reference,
<?php     {

        $certificate = Certificate::factory()->create();



        $response = $this->get(route('certificate.show', $certificate));



        $response->assertOk();

        $response->assertJsonStructure([]);
<?php         $document = $this->faker->word;

        $expiry_date = $this->faker->date();



        $response = $this->put(route('certificate.update', $certificate), [

            'name' => $name,

            'certificate_type_id' => $certificate_type->id,

            'reference' => $reference,
<?php     {

        $certificate = Certificate::factory()->create();



        $response = $this->delete(route('certificate.destroy', $certificate));



        $response->assertNoContent();
<?php         $amount = $this->faker->randomFloat(/** decimal_attributes **/);

        $user = User::factory()->create();



        $response = $this->post(route('payment.store'), [

            'status' => $status,

            'amount' => $amount,

            'user_id' => $user->id,
<?php     public function create_displays_view()

    {

        $response = $this->get(route('payment.create'));



        $response->assertOk();

        $response->assertViewIs('payment.create');
<?php         Event::fake();

        Mail::fake();



        $response = $this->post(route('payment.store'), [

            'status' => $status,

            'amount' => $amount,

            'user_id' => $user->id,
<?php         $this->assertCount(1, $payments);

        $payment = $payments->first();



        $response->assertRedirect(route('payment.create'));

        $response->assertSessionHas('message', $message);



        Event::assertDispatched(NewPayment::class, function ($event) use ($payment) {
<?php     {

        $subscriptions = Subscription::factory()->count(3)->create();



        $response = $this->get(route('subscription.index'));



        $response->assertOk();

        $response->assertViewIs('subscription.index');
<?php     {

        $subscription = Subscription::factory()->create();



        $response = $this->get(route('subscription.show', $subscription));



        $response->assertOk();

        $response->assertViewIs('subscription.show');
<?php     {

        $certificates = Certificate::factory()->count(3)->create();



        $response = $this->get(route('certificate.index'));



        $response->assertOk();

        $response->assertJsonStructure([]);
<?php         $document = $this->faker->word;

        $expiry_date = $this->faker->date();



        $response = $this->post(route('certificate.store'), [

            'name' => $name,

            'certificate_type_id' => $certificate_type->id,

            'reference' => $reference,
<?php     {

        $certificate = Certificate::factory()->create();



        $response = $this->get(route('certificate.show', $certificate));



        $response->assertOk();

        $response->assertJsonStructure([]);
<?php         $document = $this->faker->word;

        $expiry_date = $this->faker->date();



        $response = $this->put(route('certificate.update', $certificate), [

            'name' => $name,

            'certificate_type_id' => $certificate_type->id,

            'reference' => $reference,