updateOrInsert( ['key' => 'billing_yookassa_enabled'], ['value' => 'true', 'type' => 'bool', 'updated_at' => now()] ); expect(SystemSettings::bool('billing_yookassa_enabled'))->toBeTrue(); }); it('возвращает default если ключа нет', function () { DB::table('system_settings')->where('key', 'no_such_flag_xyz')->delete(); expect(SystemSettings::bool('no_such_flag_xyz', false))->toBeFalse(); });