diff options
author | Calvin Morrison <calvin@fastmailteam.com> | 2022-08-02 11:30:56 -0400 |
---|---|---|
committer | Calvin Morrison <calvin@fastmailteam.com> | 2022-08-02 11:30:56 -0400 |
commit | 2466d29fe2319c1057cca7cf1e1977451088276e (patch) | |
tree | 23a9ada5dec1f8c8e106be100d3a0d75fcc0125e /tests/CreatesApplication.php |
initial commit of laravel
Diffstat (limited to 'tests/CreatesApplication.php')
-rw-r--r-- | tests/CreatesApplication.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/CreatesApplication.php b/tests/CreatesApplication.php new file mode 100644 index 0000000..547152f --- /dev/null +++ b/tests/CreatesApplication.php @@ -0,0 +1,22 @@ +<?php + +namespace Tests; + +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(); + + return $app; + } +} |