Files
compras/tests/Feature/ReceiptQuantityConversionIsolationTest.php
T
nala 4fac443dda
tests / ci (push) Waiting to run
commit melhorias compras2
2026-11-21 21:11:55 +02:00

21 lines
972 B
PHP

<?php
namespace Tests\Feature;
use Symfony\Component\Process\Process;
use Tests\TestCase;
final class ReceiptQuantityConversionIsolationTest extends TestCase
{
public function test_conversion_contract_in_an_isolated_kernel_without_replacing_the_published_writer(): void
{
// The normal Feature suite may already have loaded the published writer. Never replace it in process.
$process = new Process([PHP_BINARY, 'vendor/bin/pest', '--compact', 'tests/Conversion/ReceiptQuantityConversionTest.php'], base_path(), [
'APP_ENV' => 'testing', 'DB_CONNECTION' => 'sqlite', 'DB_DATABASE' => ':memory:', 'DB_URL' => false,
'CACHE_STORE' => 'array', 'SESSION_DRIVER' => 'array', 'MAIL_MAILER' => 'array', 'QUEUE_CONNECTION' => 'sync', 'BROADCAST_CONNECTION' => 'null',
], timeout: 120);
$process->run();
$this->assertTrue($process->isSuccessful(), $process->getOutput().$process->getErrorOutput());
}
}