romegasoftware / testsuite
Common test methods utilized in Romega packages.
Installs: 92
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires
- codedungeon/phpunit-result-printer: dev-master
- illuminate/support: ~5.8|~6.0|~7.0|~8.0
- spatie/laravel-permission: ^3.0|^4.0|^5.0
Requires (Dev)
- phpunit/phpunit: ^8.0|^9.0
This package is auto-updated.
Last update: 2024-10-18 16:41:47 UTC
README
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;