setupEnv( $config, $data ); $title = MediaWikiServices::getInstance()->getTitleParser()->parseTitle( $title ); $parser = static::createParser( $data ); $threadItemSet = $parser->parse( $container, $title ); $isSigned = CommentUtils::isSingleCommentSignedBy( $threadItemSet, $username, $container ); static::assertEquals( $expected, $isSigned, $msg ); } public function provideIsSingleCommentSignedBy(): array { return static::getJson( '../cases/isSingleCommentSignedBy.json' ); } }