dependencies-upgrade

This commit is contained in:
RafficMohammed
2023-01-08 02:20:59 +05:30
parent 7870479b18
commit 49021a4497
1711 changed files with 74994 additions and 70803 deletions

View File

@@ -45,6 +45,10 @@ class InstallCommand extends Command
$this->createConsoleDirectory();
}
if (! is_dir(base_path('tests/Browser/source'))) {
$this->createSourceDirectory();
}
$stubs = [
'ExampleTest.stub' => base_path('tests/Browser/ExampleTest.php'),
'HomePage.stub' => base_path('tests/Browser/Pages/HomePage.php'),
@@ -100,6 +104,20 @@ class InstallCommand extends Command
file_put_contents(base_path('tests/Browser/console/.gitignore'), '*
!.gitignore
');
}
/**
* Create the source directory.
*
* @return void
*/
protected function createSourceDirectory()
{
mkdir(base_path('tests/Browser/source'), 0755, true);
file_put_contents(base_path('tests/Browser/source/.gitignore'), '*
!.gitignore
');
}
}