dependencies-upgrade
This commit is contained in:
@@ -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
|
||||
');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user