composer require romegasoftware/testsuite --dev
art make:factory TenantFactory
// TenantFactory.php
$factory->define(App\Tenant::class, function (Faker $faker) {
return [
'name' => $faker->name,
'domain' => $faker->word,
];
});
use TenantDomain;
public function setUp()
{
parent::setUp();
$this->user->assignRole('basic user');
}
use TenantAdminDomain;