12 lines
502 B
PHP
12 lines
502 B
PHP
<?php
|
|
|
|
use App\Services\StandaloneSchema;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
test('standalone preflight accepts the actual common payables schema including event keyed outbox', function () {
|
|
StandaloneSchema::verify(DB::getSchemaBuilder(), ['supplier-payables' => true]);
|
|
expect(DB::getSchemaBuilder()->hasColumn('pa_outbox', 'event_id'))->toBeTrue()
|
|
->and(DB::getSchemaBuilder()->hasColumn('pa_outbox', 'id'))->toBeFalse()
|
|
->and(DB::table('pa_access')->count())->toBe(0);
|
|
});
|