Skip to content

Commit

Permalink
Apply fixes from StyleCI (#872)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Feb 12, 2021
1 parent 2d233e2 commit 3a65fa4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Chrome/ChromeProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ public function toProcess(array $arguments = [])
if ($this->driver) {
$driver = $this->driver;
} elseif ($this->onWindows()) {
$driver = __DIR__ . '/../../bin/chromedriver-win.exe';
$driver = __DIR__.'/../../bin/chromedriver-win.exe';
} elseif ($this->onMac()) {
$driver = __DIR__ . '/../../bin/chromedriver-mac';
$driver = __DIR__.'/../../bin/chromedriver-mac';
} else {
$driver = __DIR__ . '/../../bin/chromedriver-linux';
$driver = __DIR__.'/../../bin/chromedriver-linux';
}

$this->driver = realpath($driver);
Expand Down
2 changes: 1 addition & 1 deletion tests/ChromeProcessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function test_build_process_for_linux()
public function test_invalid_path()
{
$this->expectException(RuntimeException::class);
$this->expectExceptionMessage("Invalid path to Chromedriver [/not/a/valid/path]. Make sure to install the Chromedriver first by running the dusk:chrome-driver command.");
$this->expectExceptionMessage('Invalid path to Chromedriver [/not/a/valid/path]. Make sure to install the Chromedriver first by running the dusk:chrome-driver command.');

(new ChromeProcess('/not/a/valid/path'))->toProcess();
}
Expand Down

0 comments on commit 3a65fa4

Please sign in to comment.