mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
40 lines
980 B
PHP
40 lines
980 B
PHP
<?php
|
|
|
|
use App\Exceptions\Handler;
|
|
use Illuminate\Contracts\Debug\ExceptionHandler;
|
|
|
|
abstract class BrowserKitTestCase extends Laravel\BrowserKitTesting\TestCase
|
|
{
|
|
/**
|
|
* The base URL to use while testing the application.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $baseUrl = 'http://localhost';
|
|
|
|
/**
|
|
* Creates the application.
|
|
*
|
|
* @return \Illuminate\Foundation\Application
|
|
*/
|
|
public function createApplication()
|
|
{
|
|
$app = require __DIR__.'/../bootstrap/app.php';
|
|
|
|
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
|
|
|
|
return $app;
|
|
}
|
|
|
|
protected function disableExceptionHandling()
|
|
{
|
|
$this->app->instance(ExceptionHandler::class, new class extends Handler {
|
|
public function __construct() {}
|
|
public function report(Exception $e) {}
|
|
public function render($request, Exception $e) {
|
|
throw $e;
|
|
}
|
|
});
|
|
}
|
|
}
|