(add basic tests for viewing published concert orders page)

This commit is contained in:
Adam Wathan
2017-07-13 14:02:05 -04:00
parent 137b862a9b
commit 4a26fd064e
5 changed files with 88 additions and 0 deletions

View File

@@ -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()