PageRenderTime 26ms CodeModel.GetById 19ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/tests/CreatesApplication.php

https://bitbucket.org/mdoviedor/hotelium
PHP | 25 lines | 14 code | 6 blank | 5 comment | 0 complexity | a23c944b0d9ea24dd52055750af817fd MD5 | raw file
 1<?php
 2
 3namespace Tests;
 4
 5use Illuminate\Contracts\Console\Kernel;
 6use Illuminate\Support\Facades\Hash;
 7
 8trait CreatesApplication
 9{
10    /**
11     * Creates the application.
12     *
13     * @return \Illuminate\Foundation\Application
14     */
15    public function createApplication()
16    {
17        $app = require __DIR__.'/../bootstrap/app.php';
18
19        $app->make(Kernel::class)->bootstrap();
20
21        Hash::driver('bcrypt')->setRounds(4);
22
23        return $app;
24    }
25}