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