once(); $user = factory(User::class, 'admin')->create(); $this->postAsUser('/api/settings', ['media_path' => __DIR__], $user) ->seeStatusCode(200); $this->assertEquals(__DIR__, Setting::get('media_path')); } }