Created
October 28, 2017 16:46
-
-
Save deleugpn/72f723c30887d42c894b9a8b47289352 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Tests; | |
| use App\Models\Main\User; | |
| use Illuminate\Foundation\Testing\RefreshDatabase; | |
| abstract class TenantTestCase extends TestCase | |
| { | |
| use RefreshDatabase; | |
| /** | |
| * @var User | |
| */ | |
| protected $user; | |
| protected function setUp() | |
| { | |
| parent::setUp(); | |
| $this->actingAs($this->user = create(User::class)); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment