Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed May 21, 2024
1 parent d7d1536 commit 78d2a57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
6 changes: 1 addition & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
parameters:
ignoreErrors:
-
message: "#^Constant TESTBENCH_WORKING_PATH not found\\.$#"
count: 1
path: src/Foundation/Console/DuskCommand.php
ignoreErrors: []
17 changes: 1 addition & 16 deletions src/Foundation/Console/DuskCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,22 +113,6 @@ protected function writeConfiguration()
$this->hasPhpUnitConfiguration = true;
}

/**
* Get the PHP binary environment variables.
*
* @return array|null
*/
#[\Override]
protected function env()
{
return array_merge(parent::env() ?? [], [
'APP_ENV' => 'testing',
'TESTBENCH_PACKAGE_TESTER' => '(true)',
'TESTBENCH_WORKING_PATH' => TESTBENCH_WORKING_PATH,
'TESTBENCH_APP_BASE_PATH' => $this->laravel->basePath(),
]);
}

/**
* Remove the Dusk PHPUnit configuration.
*
Expand All @@ -147,6 +131,7 @@ protected function removeConfiguration()
*
* @return array|null
*/
#[\Override]
protected function env()
{
return array_merge(parent::env() ?? [], [
Expand Down

0 comments on commit 78d2a57

Please sign in to comment.