Skip to content

Instantly share code, notes, and snippets.

@deleugpn
Created October 28, 2017 16:46
Show Gist options
  • Select an option

  • Save deleugpn/72f723c30887d42c894b9a8b47289352 to your computer and use it in GitHub Desktop.

Select an option

Save deleugpn/72f723c30887d42c894b9a8b47289352 to your computer and use it in GitHub Desktop.
<?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