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 Nov 27, 2024
1 parent 60cf4cd commit 64ed161
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 15 deletions.
2 changes: 2 additions & 0 deletions bin/sync
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ $files->copyDirectory("{$workingPath}/vendor/orchestra/testbench-core/workbench/
$files->copyDirectory("{$workingPath}/vendor/orchestra/testbench-core/workbench/routes", "{$workingPath}/workbench/routes");
$files->copy("{$workingPath}/vendor/laravel/dusk/stubs/phpunit.xml", "{$workingPath}/stubs/phpunit.xml");

$files->put("{$workingPath}/laravel/bootstrap/.testbench-default-skeleton", '@testbench-dusk');

/**
* ----------------------------------------------------------------------
* Copy files from `laravel/laravel`
Expand Down
1 change: 1 addition & 0 deletions laravel/bootstrap/.testbench-default-skeleton
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@testbench-dusk
3 changes: 2 additions & 1 deletion laravel/bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
*/
$createApp = static function (string $workingPath) {
$config = Config::loadFromYaml(
defined('TESTBENCH_WORKING_PATH') ? TESTBENCH_WORKING_PATH : join_paths($workingPath, 'bootstrap', 'cache', 'testbench.yaml')
workingPath: defined('TESTBENCH_WORKING_PATH') ? TESTBENCH_WORKING_PATH : $workingPath,
filename: defined('TESTBENCH_WORKING_PATH') ? 'testbench.yaml' : join_paths($workingPath, 'bootstrap', 'cache', 'testbench.yaml')
);

$hasEnvironmentFile = ! is_null($config['laravel'])
Expand Down
14 changes: 0 additions & 14 deletions src/Foundation/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,4 @@ public static function applicationBasePath()
{
return static::applicationBasePathUsingWorkbench() ?? default_skeleton_path();
}

/**
* Get the default application bootstrap file path (if exists).
*
* @internal
*
* @param string $filename
* @return string|false
*/
#[\Override]
protected function getDefaultApplicationBootstrapFile(string $filename): string|false
{
return realpath(default_skeleton_path(join_paths('bootstrap', $filename)));
}
}

0 comments on commit 64ed161

Please sign in to comment.