-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Remove TogglesHeadlessMode redundant methods
laravel/dusk#1098 Laravel Dusk 8.x now defines these methods in class Laravel\Dusk\TestCase so the stub classes that extend TestCase don't need to redefine hasHeadlessDisabled() and shouldStartMaximized().
- Loading branch information
Showing
3 changed files
with
32 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace Derekmd\Dusk\Tests\Stubs; | ||
|
||
use Derekmd\Dusk\Concerns\TogglesHeadlessMode; | ||
use Laravel\Dusk\TestCase; | ||
|
||
class TogglesHeadlessStub extends TestCase | ||
{ | ||
use TogglesHeadlessMode { | ||
filterHeadlessArguments as filterHeadlessArgumentsProtected; | ||
} | ||
|
||
public function __construct() | ||
{ | ||
parent::__construct('TogglesHeadless'); | ||
} | ||
|
||
public function createApplication() | ||
{ | ||
// Not needed in this test suite. Method must be declared for PHPUnit v10. | ||
} | ||
|
||
public function filterHeadlessArguments($args) | ||
{ | ||
return $this->filterHeadlessArgumentsProtected($args); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters