isLoaded( 'Liquid Threads' ) ) { $this->overrideConfigValue( 'LqtTalkPages', false ); } $params = [ 'action' => 'parse', 'title' => 'Talk:Test', 'uselang' => 'en', 'text' => "__FORCETOC__\n== foo ==\nbar ~~~~", 'pst' => 1, 'prop' => 'sections', ]; [ $result, ] = $this->doApiRequest( $params ); $this->assertSame( '1 comment', $result['parse']['sections'][0]['extensionData']['DiscussionTools-html-summary'] ); } }