summaryrefslogtreecommitdiff
path: root/site/tests/CreatesApplication.php
diff options
context:
space:
mode:
authorhorus_arch2018-02-07 18:07:53 +0100
committerhorus_arch2018-02-07 18:07:53 +0100
commit92eb8143762e116e8959f6270271fd5540ca50ac (patch)
treea9fdc5009b9816fb448431b24bac38f7a215d40d /site/tests/CreatesApplication.php
parent71950479fbd6088f249e5fda3b180f294d1d745d (diff)
downloadalkobote-92eb8143762e116e8959f6270271fd5540ca50ac.tar.gz
Adds basic site in laravel.
Diffstat (limited to 'site/tests/CreatesApplication.php')
-rw-r--r--site/tests/CreatesApplication.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/site/tests/CreatesApplication.php b/site/tests/CreatesApplication.php
new file mode 100644
index 0000000..ff133fb
--- /dev/null
+++ b/site/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;
+ }
+}