Skip to content

Commit 8cc034c

Browse files
authored
Merge pull request #5 from Blaspsoft/hotfix/install-tests-at-command-level
The test installation into stack install files
2 parents 0864445 + 254ad1a commit 8cc034c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/Console/InstallReact.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@ public function installReact()
2020

2121
(new Filesystem)->ensureDirectoryExists(resource_path('js/components/icons'));
2222
(new Filesystem)->copyDirectory(__DIR__.'/../../stubs/react/components/icons', resource_path('js/components/icons'));
23+
24+
(new Filesystem)->ensureDirectoryExists(base_path('tests/Feature/SocialitePlus'));
25+
(new Filesystem)->copyDirectory(__DIR__.'/../stubs/tests/Feature/SocialitePlus', base_path('tests/Feature/SocialitePlus'));
2326
}
2427
}

src/Console/InstallVue.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@ public function installVue()
2020

2121
(new Filesystem)->ensureDirectoryExists(resource_path('js/components/icons'));
2222
(new Filesystem)->copyDirectory(__DIR__.'/../../stubs/vue/components/icons', resource_path('js/components/icons'));
23+
24+
(new Filesystem)->ensureDirectoryExists(base_path('tests/Feature/SocialitePlus'));
25+
(new Filesystem)->copyDirectory(__DIR__.'/../stubs/tests/Feature/SocialitePlus', base_path('tests/Feature/SocialitePlus'));
2326
}
2427
}

src/SocialitePlusServiceProvider.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ public function boot()
2929
(new Filesystem)->ensureDirectoryExists(app_path('Http/Middleware'));
3030
(new Filesystem)->copyDirectory(__DIR__.'/../stubs/app/Http/Middleware', app_path('Http/Middleware'));
3131

32-
(new Filesystem)->ensureDirectoryExists(base_path('tests/Feature/SocialitePlus'));
33-
(new Filesystem)->copyDirectory(__DIR__.'/../stubs/tests/Feature/SocialitePlus', base_path('tests/Feature/SocialitePlus'));
34-
3532
$this->commands([
3633
Console\InstallCommand::class,
3734
]);

0 commit comments

Comments
 (0)