diff options
Diffstat (limited to 'www/wiki/extensions/Maps/tests/Integration/MediaWiki/ParserHooks/MapsDocTest.php')
-rw-r--r-- | www/wiki/extensions/Maps/tests/Integration/MediaWiki/ParserHooks/MapsDocTest.php | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/www/wiki/extensions/Maps/tests/Integration/MediaWiki/ParserHooks/MapsDocTest.php b/www/wiki/extensions/Maps/tests/Integration/MediaWiki/ParserHooks/MapsDocTest.php new file mode 100644 index 00000000..96a06ca7 --- /dev/null +++ b/www/wiki/extensions/Maps/tests/Integration/MediaWiki/ParserHooks/MapsDocTest.php @@ -0,0 +1,54 @@ +<?php + +namespace Maps\Tests\Integration\MediaWiki\ParserHooks; + +use Maps\MediaWiki\ParserHooks\MapsDocFunction; + +/** + * @covers MapsDocFunction + * + * @licence GNU GPL v2+ + * @author Jeroen De Dauw < jeroendedauw@gmail.com > + */ +class MapsDocTest extends ParserHookTest { + + /** + * @see ParserHookTest::parametersProvider + */ + public function parametersProvider() { + $paramLists = []; + + $paramLists[] = []; + + return $this->arrayWrap( $paramLists ); + } + + /** + * @see ParserHookTest::processingProvider + */ + public function processingProvider() { + $argLists = []; + + $values = [ 'service' => 'googlemaps3' ]; + + $expected = [ 'service' => 'googlemaps3' ]; + + $argLists[] = [ $values, $expected ]; + + $values = [ 'service' => 'GOOGLEmaps3' ]; + + $expected = [ 'service' => 'googlemaps3' ]; + + $argLists[] = [ $values, $expected ]; + + return $argLists; + } + + /** + * @see ParserHookTest::getInstance + */ + protected function getInstance() { + return new \Maps\MediaWiki\ParserHooks\MapsDocFunction(); + } + +}
\ No newline at end of file |