Files
portal/app/tests/Feature/Autopodbor/AutopodborSettingsSeedTest.php
T

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();
});