File "ProductTest.php"

Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/tests/Browser/ProductTest.php
File size: 542 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Tests\Browser;

use Illuminate\Foundation\Testing\DatabaseMigrations;
use Laravel\Dusk\Browser;
use Tests\DuskTestCase;

/**
 * @internal
 * @coversNothing
 */
class ProductTest extends DuskTestCase
{
    public function testIndex()
    {
        $admin = App\Models\User::find(1);
        $this->browse(function (Browser $browser) use ($admin) {
            $browser->loginAs($admin);
            $browser->visit(route('admin.product.index'));
            $browser->assertRouteIs('admin.product.index');
        });
    }
}