5a861e0e85
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
15 lines
598 B
PHP
15 lines
598 B
PHP
<?php
|
|
|
|
use App\Models\SystemSetting;
|
|
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')
|
|
->and(SystemSetting::whereKey('autopodbor_price_search_rub')->exists())->toBeTrue()
|
|
->and(SystemSetting::whereKey('autopodbor_price_study_rub')->exists())->toBeTrue();
|
|
});
|