2026-08-24 16:15:52 +03:30
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Tests\Unit;
|
|
|
|
|
|
|
|
|
|
use App\Services\ConfigService;
|
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
|
|
|
|
|
|
class QuotePricePlausibilityTest extends TestCase
|
|
|
|
|
{
|
2026-08-25 13:31:47 +03:30
|
|
|
public function test_accepts_any_positive_price(): void
|
2026-08-24 16:15:52 +03:30
|
|
|
{
|
2026-08-25 13:31:47 +03:30
|
|
|
$config = new ConfigService();
|
2026-08-24 16:15:52 +03:30
|
|
|
|
|
|
|
|
$this->assertTrue($config->isPlausibleQuotePrice(168_336_410.0));
|
2026-08-25 13:31:47 +03:30
|
|
|
$this->assertTrue($config->isPlausibleQuotePrice(222_010_000.0));
|
2026-08-24 16:15:52 +03:30
|
|
|
$this->assertFalse($config->isPlausibleQuotePrice(0.0));
|
2026-08-25 13:31:47 +03:30
|
|
|
$this->assertFalse($config->isPlausibleQuotePrice(-1.0));
|
2026-08-24 16:15:52 +03:30
|
|
|
}
|
|
|
|
|
}
|