diff options
| author | Max | 2019-05-13 15:50:36 +0200 |
|---|---|---|
| committer | Max | 2019-05-13 15:50:36 +0200 |
| commit | 7149647b729b2aa30d76346a7cc3da37c1c692ca (patch) | |
| tree | b773b7c02a3434ea46d12659302abc586b0fdb7b /tests/CreatesApplication.php | |
| download | kategorischeraperitif-7149647b729b2aa30d76346a7cc3da37c1c692ca.tar.gz | |
Initial commit.
Diffstat (limited to 'tests/CreatesApplication.php')
| -rw-r--r-- | tests/CreatesApplication.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/CreatesApplication.php b/tests/CreatesApplication.php new file mode 100644 index 0000000..ff133fb --- /dev/null +++ b/tests/CreatesApplication.php @@ -0,0 +1,25 @@ +<?php + +namespace Tests; + +use Illuminate\Support\Facades\Hash; +use Illuminate\Contracts\Console\Kernel; + +trait CreatesApplication +{ + /** + * Creates the application. + * + * @return \Illuminate\Foundation\Application + */ + public function createApplication() + { + $app = require __DIR__.'/../bootstrap/app.php'; + + $app->make(Kernel::class)->bootstrap(); + + Hash::driver('bcrypt')->setRounds(4); + + return $app; + } +} |
