Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-adminpanel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
laravel-adminpanel
Commits
2b02d26c
Commit
2b02d26c
authored
Apr 27, 2019
by
Viral Solani
Committed by
StyleCI Bot
Apr 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply fixes from StyleCI
parent
ec99dfb7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
10 deletions
+11
-10
UserFactory.php
database/factories/UserFactory.php
+5
-5
LoginTest.php
tests/Browser/LoginTest.php
+1
-1
HomePage.php
tests/Browser/Pages/HomePage.php
+2
-1
DuskTestCase.php
tests/DuskTestCase.php
+3
-3
No files found.
database/factories/UserFactory.php
View file @
2b02d26c
...
...
@@ -7,12 +7,12 @@ $factory->define(User::class, function (Generator $faker) {
static
$password
;
return
[
'first_name'
=>
$faker
->
name
,
'last_name'
=>
$faker
->
name
,
'email'
=>
$faker
->
safeEmail
,
'password'
=>
$password
?:
$password
=
bcrypt
(
'secret'
),
'first_name'
=>
$faker
->
name
,
'last_name'
=>
$faker
->
name
,
'email'
=>
$faker
->
safeEmail
,
'password'
=>
$password
?:
$password
=
bcrypt
(
'secret'
),
'confirmation_code'
=>
md5
(
uniqid
(
mt_rand
(),
true
)),
'remember_token'
=>
str_random
(
10
),
'remember_token'
=>
str_random
(
10
),
];
});
...
...
tests/Browser/LoginTest.php
View file @
2b02d26c
...
...
@@ -2,10 +2,10 @@
namespace
Tests\Browser
;
use
App\Models\Access\User\User
;
use
Laravel\Dusk\Browser
;
use
Tests\Browser\Pages\Login
;
use
Tests\DuskTestCase
;
use
App\Models\Access\User\User
;
class
LoginTest
extends
DuskTestCase
{
...
...
tests/Browser/Pages/HomePage.php
View file @
2b02d26c
...
...
@@ -19,7 +19,8 @@ class HomePage extends Page
/**
* Assert that the browser is on the page.
*
* @param \Laravel\Dusk\Browser $browser
* @param \Laravel\Dusk\Browser $browser
*
* @return void
*/
public
function
assert
(
Browser
$browser
)
...
...
tests/DuskTestCase.php
View file @
2b02d26c
...
...
@@ -2,10 +2,10 @@
namespace
Tests
;
use
Laravel\Dusk\TestCase
as
BaseTestCase
;
use
Facebook\WebDriver\Chrome\ChromeOptions
;
use
Facebook\WebDriver\Remote\RemoteWebDriver
;
use
Facebook\WebDriver\Remote\DesiredCapabilities
;
use
Facebook\WebDriver\Remote\RemoteWebDriver
;
use
Laravel\Dusk\TestCase
as
BaseTestCase
;
abstract
class
DuskTestCase
extends
BaseTestCase
{
...
...
@@ -28,7 +28,7 @@ abstract class DuskTestCase extends BaseTestCase
*/
protected
function
driver
()
{
$options
=
(
new
ChromeOptions
)
->
addArguments
([
$options
=
(
new
ChromeOptions
()
)
->
addArguments
([
//'--disable-gpu',
//'--headless',
'--window-size=1920,1080'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment