lundi 30 août 2021

Is createApplication() method required for Laravel Dusk test cases?

I am attempting to set up Laravel Dusk in a Laravel 5.4 application. Executing php artisan dusk does not launch a browser window as shown in this guide and I am trying to figure out why. PHPStorm complains that the ExampleTest class created during execution of the php artisan dusk:install command must implement the createApplication() method, but I cannot find any mention of this method in:

  1. The official Laravel guide
  2. This Scotch.io guide
  3. A search of all files within the Laravel application directory using PHPStorm's search function.

ExampleTest class is as follows:

class ExampleTest extends DuskTestCase
{
    /**
     * A basic browser test example.
     *
     * @return void
     */
    public function testBasicExample()
    {
        $this->browse(function ($browser) {
            $browser->visit('/')
                    ->assertSee('Laravel');
        });
    }
}


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3BuPib3
via IFTTT

Aucun commentaire:

Enregistrer un commentaire