mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-08 14:50:42 +00:00
(add disableExceptionHandling helper, clean up comments)
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
<?php
|
||||
|
||||
use App\Exceptions\Handler;
|
||||
use Illuminate\Contracts\Debug\ExceptionHandler;
|
||||
|
||||
abstract class TestCase extends Illuminate\Foundation\Testing\TestCase
|
||||
{
|
||||
/**
|
||||
@@ -22,4 +25,15 @@ abstract class TestCase extends Illuminate\Foundation\Testing\TestCase
|
||||
|
||||
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;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user