mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-03 04:48:01 +00:00
(add basic tests for viewing published concert orders page)
This commit is contained in:
@@ -4,6 +4,7 @@ namespace Tests;
|
||||
|
||||
use Exception;
|
||||
use App\Exceptions\Handler;
|
||||
use PHPUnit\Framework\Assert;
|
||||
use Illuminate\Foundation\Testing\TestResponse;
|
||||
use Illuminate\Contracts\Debug\ExceptionHandler;
|
||||
|
||||
@@ -25,6 +26,10 @@ abstract class TestCase extends \Illuminate\Foundation\Testing\TestCase
|
||||
TestResponse::macro('data', function ($key) {
|
||||
return $this->original->getData()[$key];
|
||||
});
|
||||
|
||||
TestResponse::macro('assertViewIs', function ($name) {
|
||||
Assert::assertEquals($name, $this->original->name());
|
||||
});
|
||||
}
|
||||
|
||||
protected function disableExceptionHandling()
|
||||
|
||||
Reference in New Issue
Block a user