toBeTrue(); }); test('lottery settings misses are not cached', function (): void { Cache::flush(); expect(LotterySettings::get('not.exists', 'fallback'))->toBe('fallback'); LotterySetting::query()->create([ 'setting_key' => 'not.exists', 'value_json' => 'hello', 'group_name' => 'test', ]); LotterySettings::forgetKey('not.exists'); expect(LotterySettings::get('not.exists'))->toBe('hello'); });