assertSame('/api/attachment/abc123def456', Attachment::urlForHash('abc123def456')); } #[Test] public function download_url_accessor_delegates_to_url_for_hash(): void { $attachment = new Attachment; $attachment->hash = 'abc123def456'; $this->assertSame('/api/attachment/abc123def456', $attachment->download_url); } }