Use more standardized phpcs
This commit is contained in:
parent
a043071e3c
commit
c449ca5155
493 changed files with 1116 additions and 3903 deletions
|
@ -70,14 +70,16 @@ abstract class BrowserTestCase extends TestCase
|
|||
*/
|
||||
protected function driver()
|
||||
{
|
||||
$options = (new ChromeOptions)->addArguments([
|
||||
$options = (new ChromeOptions())->addArguments([
|
||||
'--disable-gpu',
|
||||
'--disable-infobars',
|
||||
]);
|
||||
|
||||
return RemoteWebDriver::create(
|
||||
'http://host.pterodactyl.local:4444/wd/hub', DesiredCapabilities::chrome()->setCapability(
|
||||
ChromeOptions::CAPABILITY, $options
|
||||
'http://host.pterodactyl.local:4444/wd/hub',
|
||||
DesiredCapabilities::chrome()->setCapability(
|
||||
ChromeOptions::CAPABILITY,
|
||||
$options
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -86,6 +88,7 @@ abstract class BrowserTestCase extends TestCase
|
|||
* Return an instance of the browser to be used for tests.
|
||||
*
|
||||
* @param \Facebook\WebDriver\Remote\RemoteWebDriver $driver
|
||||
*
|
||||
* @return \Pterodactyl\Tests\Browser\PterodactylBrowser
|
||||
*/
|
||||
protected function newBrowser($driver): PterodactylBrowser
|
||||
|
@ -109,9 +112,6 @@ abstract class BrowserTestCase extends TestCase
|
|||
|
||||
/**
|
||||
* Return a user model to authenticate aganist and use in the tests.
|
||||
*
|
||||
* @param array $attributes
|
||||
* @return \Pterodactyl\Models\User
|
||||
*/
|
||||
protected function user(array $attributes = []): User
|
||||
{
|
||||
|
|
Reference in a new issue