/** * Set up the tests * * @return void */ public function setUp() { $this->app = new Container(); // Laravel classes --------------------------------------------- / $this->app->instance('path.base', '/src'); $this->app->instance('path', '/src/app'); $this->app->instance('path.public', '/src/public'); $this->app->instance('path.storage', '/src/app/storage'); $this->app['files'] = new Filesystem(); $this->app['config'] = $this->getConfig(); // Trucker classes ------------------------------------------- / $serviceProvider = new TruckerServiceProvider($this->app); $this->app = $serviceProvider->bindClasses($this->app); }
/** * Get the registered name of the component. * * @return string */ protected static function getFacadeAccessor() { if (!static::$app) { static::$app = TruckerServiceProvider::make(); } return 'trucker.model'; }