101 - Getting Started with Laravel Dusk

This commit is contained in:
Adam Wathan
2017-05-02 15:51:20 -04:00
parent 0bcdd67a81
commit 41fbdcae1a
11 changed files with 245 additions and 3 deletions

View File

@@ -0,0 +1,23 @@
<?php
namespace Tests\Browser;
use Tests\DuskTestCase;
use Laravel\Dusk\Browser;
use Illuminate\Foundation\Testing\DatabaseMigrations;
class ExampleTest extends DuskTestCase
{
/**
* A basic browser test example.
*
* @return void
*/
public function testBasicExample()
{
$this->browse(function (Browser $browser) {
$browser->visit('/')
->assertSee('Laravel');
});
}
}