commit compras3 2911
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-29 16:03:11 +02:00
parent 7da8d6c87a
commit 30bfb1a773
72 changed files with 10998 additions and 98 deletions
+8
View File
@@ -59,3 +59,11 @@ test('standalone binding rejects other drivers without querying them', function
$db->shouldReceive('getDriverName')->once()->andReturn('sqlite');
expect(fn () => StandaloneRuntime::databaseBinding($db))->toThrow(LogicException::class, 'COMPRAS_RUNTIME_DATABASE_DRIVER');
});
test('standalone data classification remains explicit and defaults to synthetic', function () {
expect((new StandaloneRuntime([], new StandaloneArtifact))->syntheticOnly())->toBeTrue()
->and((new StandaloneRuntime(['enabled' => true], new StandaloneArtifact))->syntheticOnly())->toBeTrue()
->and((new StandaloneRuntime(['enabled' => true, 'synthetic_only' => false], new StandaloneArtifact))->syntheticOnly())->toBeFalse();
expect(fn () => (new StandaloneRuntime(['enabled' => true, 'synthetic_only' => 'false'], new StandaloneArtifact))->syntheticOnly())
->toThrow(LogicException::class, 'COMPRAS_RUNTIME_DATA_CLASSIFICATION');
});