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
bc94659e
Unverified
Commit
bc94659e
authored
Dec 12, 2017
by
Viral Solani
Committed by
GitHub
Dec 12, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #83 from viralsolani/analysis-zD0L7L
Apply fixes from StyleCI
parents
92a4f824
2f8428f9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
ExampleTest.php
tests/Browser/ExampleTest.php
+1
-2
HomePage.php
tests/Browser/Pages/HomePage.php
+2
-1
DuskTestCase.php
tests/DuskTestCase.php
+5
-4
No files found.
tests/Browser/ExampleTest.php
View file @
bc94659e
...
@@ -2,9 +2,8 @@
...
@@ -2,9 +2,8 @@
namespace
Tests\Browser
;
namespace
Tests\Browser
;
use
Tests\DuskTestCase
;
use
Laravel\Dusk\Browser
;
use
Laravel\Dusk\Browser
;
use
Illuminate\Foundation\Testing\DatabaseMigrations
;
use
Tests\DuskTestCase
;
class
ExampleTest
extends
DuskTestCase
class
ExampleTest
extends
DuskTestCase
{
{
...
...
tests/Browser/Pages/HomePage.php
View file @
bc94659e
...
@@ -20,6 +20,7 @@ class HomePage extends Page
...
@@ -20,6 +20,7 @@ class HomePage extends Page
* Assert that the browser is on the page.
* Assert that the browser is on the page.
*
*
* @param Browser $browser
* @param Browser $browser
*
* @return void
* @return void
*/
*/
public
function
assert
(
Browser
$browser
)
public
function
assert
(
Browser
$browser
)
...
...
tests/DuskTestCase.php
View file @
bc94659e
...
@@ -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
{
{
...
@@ -15,6 +15,7 @@ abstract class DuskTestCase extends BaseTestCase
...
@@ -15,6 +15,7 @@ abstract class DuskTestCase extends BaseTestCase
* Prepare for Dusk test execution.
* Prepare for Dusk test execution.
*
*
* @beforeClass
* @beforeClass
*
* @return void
* @return void
*/
*/
public
static
function
prepare
()
public
static
function
prepare
()
...
@@ -29,9 +30,9 @@ abstract class DuskTestCase extends BaseTestCase
...
@@ -29,9 +30,9 @@ 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'
,
]);
]);
return
RemoteWebDriver
::
create
(
return
RemoteWebDriver
::
create
(
...
...
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