Unverified Commit d144d797 authored by Viral Solani's avatar Viral Solani Committed by GitHub

Merge pull request #391 from viralsolani/analysis-8PkN1e

Apply fixes from StyleCI
parents ec99dfb7 2b02d26c
...@@ -7,12 +7,12 @@ $factory->define(User::class, function (Generator $faker) { ...@@ -7,12 +7,12 @@ $factory->define(User::class, function (Generator $faker) {
static $password; static $password;
return [ return [
'first_name' => $faker->name, 'first_name' => $faker->name,
'last_name' => $faker->name, 'last_name' => $faker->name,
'email' => $faker->safeEmail, 'email' => $faker->safeEmail,
'password' => $password ?: $password = bcrypt('secret'), 'password' => $password ?: $password = bcrypt('secret'),
'confirmation_code' => md5(uniqid(mt_rand(), true)), 'confirmation_code' => md5(uniqid(mt_rand(), true)),
'remember_token' => str_random(10), 'remember_token' => str_random(10),
]; ];
}); });
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
namespace Tests\Browser; namespace Tests\Browser;
use App\Models\Access\User\User;
use Laravel\Dusk\Browser; use Laravel\Dusk\Browser;
use Tests\Browser\Pages\Login; use Tests\Browser\Pages\Login;
use Tests\DuskTestCase; use Tests\DuskTestCase;
use App\Models\Access\User\User;
class LoginTest extends DuskTestCase class LoginTest extends DuskTestCase
{ {
......
...@@ -19,7 +19,8 @@ class HomePage extends Page ...@@ -19,7 +19,8 @@ class HomePage extends Page
/** /**
* Assert that the browser is on the page. * Assert that the browser is on the page.
* *
* @param \Laravel\Dusk\Browser $browser * @param \Laravel\Dusk\Browser $browser
*
* @return void * @return void
*/ */
public function assert(Browser $browser) public function assert(Browser $browser)
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
namespace Tests; namespace Tests;
use Laravel\Dusk\TestCase as BaseTestCase;
use Facebook\WebDriver\Chrome\ChromeOptions; use Facebook\WebDriver\Chrome\ChromeOptions;
use Facebook\WebDriver\Remote\RemoteWebDriver;
use Facebook\WebDriver\Remote\DesiredCapabilities; use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
use Laravel\Dusk\TestCase as BaseTestCase;
abstract class DuskTestCase extends BaseTestCase abstract class DuskTestCase extends BaseTestCase
{ {
...@@ -28,7 +28,7 @@ abstract class DuskTestCase extends BaseTestCase ...@@ -28,7 +28,7 @@ abstract class DuskTestCase extends BaseTestCase
*/ */
protected function driver() protected function driver()
{ {
$options = (new ChromeOptions)->addArguments([ $options = (new ChromeOptions())->addArguments([
//'--disable-gpu', //'--disable-gpu',
//'--headless', //'--headless',
'--window-size=1920,1080', '--window-size=1920,1080',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment