'100.0.0']); Artisan::shouldReceive('call')->with('update')->once(); $this->get('/'); config(['app.version' => $current]); $this->mock(Filesystem::class, function ($mock) { $mock->shouldReceive('exists') ->with(storage_path('install.lock')) ->andReturn(true, false, false); }); $this->get('/')->assertViewIs('home'); $this->get('/setup')->assertViewIs('setup.wizard.welcome'); $this->get('/')->assertRedirect('/setup'); $this->assertEquals([], config('translation-loader.translation_loaders')); } }