3 use Illuminate\Foundation\Testing\DatabaseTransactions;
4 use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
5 use Illuminate\Foundation\Testing\TestResponse;
7 abstract class TestCase extends BaseTestCase
9 use CreatesApplication;
10 use DatabaseTransactions;
11 use SharedTestHelpers;
13 * The base URL to use while testing the application.
16 protected $baseUrl = 'http://localhost';
19 * Assert a permission error has occurred.
20 * @param TestResponse $response
22 protected function assertPermissionError(TestResponse $response)
24 $response->assertRedirect('/');
25 $this->assertTrue(session()->has('error'));
26 session()->remove('error');