forceFill($attrs + [ 'id' => random_int(1, PHP_INT_MAX), 'guid' => (string) Str::uuid(), 'word' => 'dhamma', 'word_en' => 'dhamma', 'meaning' => '法', 'channal' => $channel, 'language' => 'zh-Hans', 'owner' => 'owner', 'editor_id' => 0, 'create_time' => time() * 1000, 'modify_time' => time() * 1000, ])->save(); return $term; } it('builds a v3 term document from summary + note with the new renderer and the v3 columns', function () { $owner = makeStudio('owner'); $channel = makeChannel($owner, '译文'); $term = indexTerm($channel, [ 'owner' => $owner, 'summary' => '一句话摘要。', 'note' => "## 小节\n\n正文**段落**。", 'content_type' => 'markdown-e2', 'quality' => 'standard', ]); TermCategory::create(['term_guid' => $term->guid, 'category' => '法义', 'position' => 0]); $doc = app(TermIndexService::class)->buildDocument($term->guid); expect($doc['summary']['text'])->toBe('一句话摘要。'); expect($doc['content']['display'])->toContain('一句话摘要。')->toContain('