@@ -0,0 +1,20 @@
|
||||
<?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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user