Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
WikiMapHelper | n/a |
0 / 0 |
n/a |
0 / 0 |
1 | n/a |
0 / 0 |
|||
getForeignURL | n/a |
0 / 0 |
n/a |
0 / 0 |
1 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\ImageSuggestions; |
4 | |
5 | use MediaWiki\WikiMap\WikiMap; |
6 | |
7 | /** |
8 | * Wrapper for WikiMap::getForeignURL() to facilitate testing of Notifier.php |
9 | */ |
10 | class WikiMapHelper { |
11 | /** |
12 | * @codeCoverageIgnore |
13 | * @return string|false |
14 | */ |
15 | public function getForeignURL( string $wikiID, string $page, ?string $fragmentId = null ) { |
16 | return WikiMap::getForeignURL( $wikiID, $page, $fragmentId ); |
17 | } |
18 | } |