TestCase.php 548 B

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