tests/TestCase.php
/**
     * Resolve the Application Configuration and set the Statamic configuration.
     * @param \Illuminate\Foundation\Application $app
     */
Resolve the Application Configuration and set the Statamic configuration.
@param \Illuminate\Foundation\Application $app
Resolve the Application Configuration and set the Statamic configuration . @param \ Illuminate \ Foundation \ Application $app
protected function resolveApplicationConfiguration($app): void
    {
        parent::resolveApplicationConfiguration($app);
        $configs = [
            'assets', 'cp', 'forms', 'routes', 'static_caching',
            'sites', 'stache', 'system', 'users',
        ];
        foreach ($configs as $config) {
            $app['config']->set("statamic.$config", require(__DIR__."/../vendor/statamic/cms/config/{$config}.php"));
        }
        $app['config']->set('statamic.users.repository', 'file');
        $app['config']->set('statamic.editions.pro', true);
    }
protected function resolveApplicationConfiguration ( $ app ) : void { parent :: resolveApplicationConfiguration ( $ app ) ; $ configs = [ 'assets' , 'cp' , 'forms' , 'routes' , 'static_caching' , 'sites' , 'stache' , 'system' , 'users' , ] ; foreach ( $ configs as $ config ) { $ app [ 'config' ] -> set ( " statamic. $ config " , require ( __DIR__ . " /../vendor/statamic/cms/config/ { $ config } .php " ) ) ; } $ app [ 'config' ] -> set ( 'statamic.users.repository' , 'file' ) ; $ app [ 'config' ] -> set ( 'statamic.editions.pro' , true ) ; }
Resolve the Application Configuration and set the Statamic configuration.
Resolve the Application Configuration and set the Statamic configuration .
// Setting the user repository to the default flat file system // Assume the pro edition within tests