public static setFacadeApplication ( Illuminate\Contracts\Foundation\Application $app ) : void | ||
$app | Illuminate\Contracts\Foundation\Application | |
return | void |
public static function setFacadeApplication($app)
{
static::$app = $app;
}
/** * Bootstrap the test environemnt: * - Create an application instance and register it within itself. * - Register the package service provider with the app. * - Set the APP facade. * * @return void */ public function setUp() { $app = new Application(); $app->instance('app', $app); $app->register('Ideil\\LaravelFileOre\\LaravelFileOreServiceProvider'); Facade::setFacadeApplication($app); }