Skip to content

Commit

Permalink
Merge branch '7.x' into 8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone committed Mar 31, 2024
2 parents 84471d5 + 6409b70 commit 92c16d6
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,27 @@ public static function setUpBeforeClass(): void
static::setUpBeforeClassForInteractsWithWebDriverOptions();

if (! isset($_ENV['DUSK_DRIVER_URL'])) {
static::startChromeDriver(['port' => 9515]);
static::defineChromeDriver();
}

parent::setUpBeforeClass();
static::startServing();
}

/**
* Define the ChromeDriver.
*
* @api
*
* @return void
*
* @codeCoverageIgnore
*/
protected static function defineChromeDriver(): void
{
static::startChromeDriver(['port' => 9515]);
}

/**
* Teardown the test environment.
*
Expand Down

0 comments on commit 92c16d6

Please sign in to comment.