mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-06 11:12:43 +01:00
dac1aa88d5
* Tests for authentication * Add db field to company table (required if we are doing jobs without an auth()->user() ) * Add Laravel Dusk for browser testing, add ability to set DB by incoming URL Hash
24 lines
453 B
PHP
24 lines
453 B
PHP
<?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');
|
|
});
|
|
}
|
|
}
|