for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Noitran\RQL\Tests;
use Orchestra\Testbench\TestCase as OrchestraTestCase;
use Illuminate\Database\Eloquent\Factory as EloquentFactory;
/**
* Class TestCase
*/
abstract class TestCase extends OrchestraTestCase
{
* Setup the test environment.
protected function setUp(): void
parent::setUp();
$this->loadMigrationsFrom(__DIR__ . '/database/migrations');
$this->registerEloquentFactoriesFrom(__DIR__ . '/database/factories');
$this->artisan('db:seed', [
'--class' => PostTestSeeder::class,
]);
}
* Register factories.
*
* @param string $path
* @return void
protected function registerEloquentFactoriesFrom($path): void
$this->app->make(EloquentFactory::class)->load($path);