true, 'existing-business.compatibility_shadow' => true]); Queue::fake(); $owner = User::factory()->create(); $other = User::factory()->create(); $business = app(ExistingBusinessDrafts::class)->save($owner, ['modality' => 'company_sale', 'classification' => 'confidential', 'reason' => 'Synthetic compatibility case', 'payload' => ['title' => 'Reserved synthetic title']]); $url = '/api/v1/existing-business/listings/'.$business->id; $this->actingAs($owner)->getJson($url)->assertOk()->assertJsonPath('record.payload.title', 'Reserved synthetic title'); $this->actingAs($other)->getJson($url)->assertForbidden(); Queue::assertNothingPushed(); $this->assertDatabaseCount('existing_business_revisions', 1); } }