Reputation: 457
so i am using laravel's Example.test and i have the following code:
public function testBasicTest()
{
$this->get('/')
->type('some query', '#search')
->press('Search')
->see('Search results for "some query"')
->onPage('/search-results');
}
However, my node watch and execute script is telling me what is on the image bellow:
But according to https://laravel.com/docs/5.1/testing, this methods are supposed to exist. Is this because i am using laravel 5.5/5.4?
Upvotes: 0
Views: 198
Reputation: 40841
Those methods were removed in laravel 5.4 in favor of browser testing with Dusk.
However, from the 5.4 upgrade docs:
Laravel 5.4's testing layer has been re-written to be simpler and lighter out of the box. If you would like to continue using the testing layer present in Laravel 5.3, you may install the laravel/browser-kit-testing package into your application. This package provides full compatibility with the Laravel 5.3 testing layer. In fact, you can run the Laravel 5.4 testing layer side-by-side with the Laravel 5.3 testing layer.
Upvotes: 2
Reputation: 179994
The visit
stuff (and everything else that's browser-based) appears to require Laravel Dusk in 5.5.
https://laravel.com/docs/5.5/dusk#installation
Upvotes: 0