protected function refreshApplication() { putenv('APP_ENV=testing'); Facade::clearResolvedInstances(); $this->app = $this->createApplication(); }