first commit

This commit is contained in:
benjibennn
2023-12-22 12:35:55 +08:00
commit 9f89a732d6
872 changed files with 156291 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace Tests\Browser;
use App\Models\User;
use Tests\DuskTestCase;
use Laravel\Dusk\Browser;
use Illuminate\Foundation\Testing\DatabaseMigrations;
class UserProfileTest extends DuskTestCase
{
/**
* A Dusk test example.
*
* @return void
*/
public function testProfilePage()
{
$this->browse(function (Browser $browser) {
$browser->loginAs(User::where('email', '=', 'scoobydoo@gmail.com')->first())
->visit('/@scoobydoo')
->assertSee('Scooby Doo');
});
}
}