113 - Viewing the Update Form

Just the view, saving changes not yet implemented.
This commit is contained in:
Adam Wathan
2017-06-28 13:44:06 -04:00
parent 5157129cca
commit a8673b2036
7 changed files with 305 additions and 8 deletions

View File

@@ -4,6 +4,7 @@ namespace Tests;
use Exception;
use App\Exceptions\Handler;
use Illuminate\Foundation\Testing\TestResponse;
use Illuminate\Contracts\Debug\ExceptionHandler;
abstract class TestCase extends \Illuminate\Foundation\Testing\TestCase
@@ -20,6 +21,10 @@ abstract class TestCase extends \Illuminate\Foundation\Testing\TestCase
protected function setUp()
{
parent::setUp();
TestResponse::macro('data', function ($key) {
return $this->original->getData()[$key];
});
}
protected function disableExceptionHandling()