2026-06-28 13:16:59 +03:00
|
|
|
<?php
|
|
|
|
|
|
2026-07-01 15:45:37 +03:00
|
|
|
use App\Models\SystemSetting;
|
2026-06-28 13:16:59 +03:00
|
|
|
use App\Support\SystemSettings;
|
|
|
|
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
|
|
|
|
|
|
|
|
|
uses(DatabaseTransactions::class);
|
|
|
|
|
|
|
|
|
|
it('сид завёл ключи автоподбора', function () {
|
|
|
|
|
expect(SystemSettings::bool('autopodbor_enabled', true))->toBeFalse() // default OFF
|
|
|
|
|
->and(SystemSettings::get('autopodbor_max_competitors'))->toBe('15')
|
2026-07-01 15:45:37 +03:00
|
|
|
->and(SystemSetting::whereKey('autopodbor_price_search_rub')->exists())->toBeTrue()
|
|
|
|
|
->and(SystemSetting::whereKey('autopodbor_price_study_rub')->exists())->toBeTrue();
|
2026-06-28 13:16:59 +03:00
|
|
|
});
|