Kartographer
Extension that adds maps to wiki pages
Loading...
Searching...
No Matches
Kartographer\Tests\KartographerTest Class Reference

@group Kartographer @group Database @covers \Kartographer\Tag\ErrorReporter @covers \Kartographer\Tag\LegacyTagHandler @covers \Kartographer\Tag\LegacyMapFrame @covers \Kartographer\Tag\LegacyMapLink @license MIT More...

+ Inheritance diagram for Kartographer\Tests\KartographerTest:
+ Collaboration diagram for Kartographer\Tests\KartographerTest:

Public Member Functions

 testTagData ( $expected, string $input, string $message, bool $wikivoyageMode=false)
 @dataProvider provideTagData
 
 testTagDataParsoid ( $expected, string $input, string $message, bool $wikivoyageMode=false, ?string $parsoid=null)
 @dataProvider provideTagData
 
 testBothTrackingCategories ()
 
 testBothTrackingCategoriesParsoid ()
 
 testSrcOffsetsMaplinkParsoid ()
 Testing T362034 - this test fails if we're not passing srcOffsets when parsing the text content.
 
 testNoTrackingCategories ()
 
 testNoTrackingCategoriesParsoid ()
 
 testResourceModules (string $input, array $expectedModules, array $expectedStyles)
 @dataProvider provideResourceModulesData
 
 testResourceModulesParsoid (string $input, array $expectedModules, array $expectedStyles)
 @dataProvider provideResourceModulesData
 
 testImagePreview ()
 
 testLiveData (string $wikitext, array $expected, bool $isPreview=false, bool $isSectionPreview=false, bool $wikivoyageMode=false)
 @dataProvider provideLiveData
 
 testLiveDataParsoid (string $wikitext, array $expected, bool $isPreview=false, bool $isSectionPreview=false, bool $wikivoyageMode=false)
 @dataProvider provideLiveData
 
 testPageProps (string $text, ?int $frames, ?int $links)
 @dataProvider providePageProps
 
 testGroupNames (array $expected, string $input)
 @dataProvider provideGroupNames
 
 testInvalidGroupNames (string $input)
 @dataProvider provideInvalidGroupNames
 

Static Public Member Functions

static provideTagData ()
 
static provideResourceModulesData ()
 
static provideLiveData ()
 
static providePageProps ()
 
static provideGroupNames ()
 
static provideInvalidGroupNames ()
 

Protected Member Functions

 setUp ()
 

Detailed Description

@group Kartographer @group Database @covers \Kartographer\Tag\ErrorReporter @covers \Kartographer\Tag\LegacyTagHandler @covers \Kartographer\Tag\LegacyMapFrame @covers \Kartographer\Tag\LegacyMapLink @license MIT

Member Function Documentation

◆ provideTagData()

static Kartographer\Tests\KartographerTest::provideTagData ( )
static

@noinspection HtmlUnknownTarget


The documentation for this class was generated from the following file: