Nwidart\Modules\tests\BaseTestCase::getEnvironmentSetUp PHP Method

getEnvironmentSetUp() protected method

Set up the environment.
protected getEnvironmentSetUp ( Illuminate\Foundation\Application $app )
$app Illuminate\Foundation\Application
    protected function getEnvironmentSetUp($app)
    {
        $app['config']->set('database.default', 'sqlite');
        $app['config']->set('database.connections.sqlite', array('driver' => 'sqlite', 'database' => ':memory:', 'prefix' => ''));
        $app['config']->set('modules.paths.modules', base_path('modules'));
        $app['config']->set('modules.paths', ['modules' => base_path('modules'), 'assets' => public_path('modules'), 'migration' => base_path('database/migrations'), 'generator' => ['assets' => 'Assets', 'config' => 'Config', 'command' => 'Console', 'event' => 'Events', 'listener' => 'Events/Handlers', 'migration' => 'Database/Migrations', 'model' => 'Entities', 'repository' => 'Repositories', 'seeder' => 'Database/Seeders', 'controller' => 'Http/Controllers', 'filter' => 'Http/Middleware', 'request' => 'Http/Requests', 'provider' => 'Providers', 'lang' => 'Resources/lang', 'views' => 'Resources/views', 'test' => 'Tests', 'jobs' => 'Jobs', 'emails' => 'Emails']]);
    }