Laravel 5.6. Call to undefined method visit

Posted 8 months ago by andremac96

Hi

I'm trying to test for registration using laravel.

    $this->visit('/register')
    ->type('Andre', 'name')
    ->press('Register')
    ->seePageIs('/');

I get this error

  1. Tests\Feature\UserTest::testExample Error: Call to undefined method Tests\Feature\UserTest::visit()

Any adivce

I don;t want to user dusk by the way

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.