summaryrefslogtreecommitdiff
path: root/tests/CreatesApplication.php
diff options
context:
space:
mode:
authorMax2019-05-13 15:50:36 +0200
committerMax2019-05-13 15:50:36 +0200
commit7149647b729b2aa30d76346a7cc3da37c1c692ca (patch)
treeb773b7c02a3434ea46d12659302abc586b0fdb7b /tests/CreatesApplication.php
downloadkategorischeraperitif-7149647b729b2aa30d76346a7cc3da37c1c692ca.tar.gz
Initial commit.
Diffstat (limited to 'tests/CreatesApplication.php')
-rw-r--r--tests/CreatesApplication.php25
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;
+ }
+}