test: verify local main against isolated PostGIS QA
This commit is contained in:
@@ -285,7 +285,14 @@ class PortalServicesTest extends TestCase
|
||||
$this->post('/management/portal-services/disclosure-authorization/apply')
|
||||
->assertRedirect(route('services.manage'))->assertSessionHasNoErrors();
|
||||
$this->assertDatabaseCount('portal_resource_revisions', 8);
|
||||
$this->assertDatabaseCount('audit_events', 13);
|
||||
// Four synchronous scans now retain their start and result in the audit ledger.
|
||||
$this->assertSame(13, DB::table('audit_events')->where('source_system', '!=', 'document-malware-worker')->count());
|
||||
$this->assertDatabaseCount('audit_events', 21);
|
||||
foreach (DB::table('portal_resources')->whereIn('id', $resourceIds)->pluck('document_id') as $documentId) {
|
||||
$this->assertSame(['scan_result_recorded', 'scan_started'], DB::table('audit_events')
|
||||
->where('source_system', 'document-malware-worker')->where('entity_id', $documentId)
|
||||
->orderBy('action')->pluck('action')->all());
|
||||
}
|
||||
$this->assertSame(4, DB::table('portal_resources')->where('published', true)->count());
|
||||
$this->assertSame(4, DB::table('documents')->where('data_classification', 'public')->where('rights_status', 'authorized')->count());
|
||||
$this->assertDatabaseHas('portal_resources', ['id' => $resourceIds[2], 'published' => true, 'source_confirmation' => 'identified', 'legal_status' => 'unknown']);
|
||||
@@ -308,6 +315,7 @@ class PortalServicesTest extends TestCase
|
||||
$this->assertDatabaseHas('portal_resource_links', ['resource_id' => $resourceIds[0], 'target_type' => 'module', 'target_key' => 'simulator']);
|
||||
$this->post('/management/portal-services/disclosure-authorization/apply')->assertSessionHasNoErrors();
|
||||
$this->assertDatabaseCount('portal_resource_revisions', 8);
|
||||
$this->assertDatabaseCount('audit_events', 21);
|
||||
}
|
||||
|
||||
public function test_qa_library_preserves_an_original_without_inventing_a_topic_or_auto_publishing(): void
|
||||
|
||||
Reference in New Issue
Block a user