mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
		
			650 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			650 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| 
 | |
| /**
 | |
|  * CreatesApplication.php
 | |
|  * Copyright (c) 2017 thegrumpydictator@gmail.com
 | |
|  * This software may be modified and distributed under the terms of the
 | |
|  * Creative Commons Attribution-ShareAlike 4.0 International License.
 | |
|  *
 | |
|  * See the LICENSE file for details.
 | |
|  */
 | |
| 
 | |
| 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;
 | |
|     }
 | |
| }
 |