romegasoftware/testsuite

Common test methods utilized in Romega packages.

dev-master 2024-10-18 16:41 UTC

This package is auto-updated.

Last update: 2024-10-18 16:41:47 UTC


README

Software License Travis Total Downloads

Install

composer require romegasoftware/testsuite --dev

Usage

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;