TestCase.php 606 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace Tests;
  3. use Illuminate\Contracts\Console\Kernel;
  4. use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
  5. abstract class TestCase extends BaseTestCase
  6. {
  7. /**
  8. * The base URL to use while testing the application.
  9. *
  10. * @var string
  11. */
  12. protected $baseUrl = 'http://localhost';
  13. /**
  14. * Creates the application.
  15. *
  16. * @return \Illuminate\Foundation\Application
  17. */
  18. public function createApplication()
  19. {
  20. $app = require __DIR__.'/../bootstrap/app.php';
  21. $app->make(Kernel::class)->bootstrap();
  22. return $app;
  23. }
  24. }