TestCase.php 532 B

12345678910111213141516171819202122232425
  1. <?php
  2. class TestCase extends Illuminate\Foundation\Testing\TestCase
  3. {
  4. /**
  5. * The base URL to use while testing the application.
  6. *
  7. * @var string
  8. */
  9. protected $baseUrl = 'http://localhost';
  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. $app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
  19. return $app;
  20. }
  21. }