CreatesApplication.php 398 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Tests;
  3. use Illuminate\Contracts\Console\Kernel;
  4. use Illuminate\Foundation\Application;
  5. trait CreatesApplication
  6. {
  7. /**
  8. * Creates the application.
  9. *
  10. * @return Application
  11. */
  12. public function createApplication()
  13. {
  14. $app = require __DIR__ . '/../bootstrap/app.php';
  15. $app->make(Kernel::class)->bootstrap();
  16. return $app;
  17. }
  18. }