Stale prices rows were rejecting a valid ~220M partner quote against an old ~168M reference and locking the app on database_last. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
540 B
PHP
20 lines
540 B
PHP
<?php
|
|
|
|
namespace Tests\Unit;
|
|
|
|
use App\Services\ConfigService;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class QuotePricePlausibilityTest extends TestCase
|
|
{
|
|
public function test_accepts_any_positive_price(): void
|
|
{
|
|
$config = new ConfigService();
|
|
|
|
$this->assertTrue($config->isPlausibleQuotePrice(168_336_410.0));
|
|
$this->assertTrue($config->isPlausibleQuotePrice(222_010_000.0));
|
|
$this->assertFalse($config->isPlausibleQuotePrice(0.0));
|
|
$this->assertFalse($config->isPlausibleQuotePrice(-1.0));
|
|
}
|
|
}
|