Semantic MediaWiki and related extensions
Public Member Functions | Protected Member Functions | List of all members
Maps\Test\LocationParserTest Class Reference
Collaboration diagram for Maps\Test\LocationParserTest:
Collaboration graph
[legend]

Public Member Functions

 setUp ()
 
 validInputProvider ()
 
 testGivenTitleThatIsNotLink_titleIsSetAndLinkIsNot ($title)
 
 titleProvider ()
 
 testGivenTitleThatIsLink_linkIsSetAndTitleIsNot ($link)
 
 linkProvider ()
 
 testGivenAddressAndNoTitle_addressIsSetAsTitle ()
 
 testGivenAddressAndTitle_addressIsNotUsedAsTitle ()
 
 testGivenCoordinatesAndNoTitle_noTitleIsSet ()
 

Protected Member Functions

 getParserClass ()
 
 requireDataValue ()
 
 assertTitleAndLinkAre (Location $location, $title, $link)
 
 assertHasJsonKeyWithValue (Location $polygon, $key, $value)
 
 getInstance ()
 

Detailed Description

Maps GNU GPL v2+

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >

Member Function Documentation

Maps\Test\LocationParserTest::assertHasJsonKeyWithValue ( Location  $polygon,
  $key,
  $value 
)
protected
Maps\Test\LocationParserTest::assertTitleAndLinkAre ( Location  $location,
  $title,
  $link 
)
protected
Maps\Test\LocationParserTest::getInstance ( )
protected

titleLinkProvider

Maps\Test\LocationParserTest::getParserClass ( )
protected
Returns
string
Maps\Test\LocationParserTest::linkProvider ( )
Maps\Test\LocationParserTest::requireDataValue ( )
protected
See also
ValueParserTestBase::requireDataValue
Since
3.0
Returns
boolean
Maps\Test\LocationParserTest::setUp ( )
Maps\Test\LocationParserTest::testGivenAddressAndNoTitle_addressIsSetAsTitle ( )
Maps\Test\LocationParserTest::testGivenAddressAndTitle_addressIsNotUsedAsTitle ( )
Maps\Test\LocationParserTest::testGivenCoordinatesAndNoTitle_noTitleIsSet ( )
Maps\Test\LocationParserTest::testGivenTitleThatIsLink_linkIsSetAndTitleIsNot (   $link)

linkProvider

Maps\Test\LocationParserTest::testGivenTitleThatIsNotLink_titleIsSetAndLinkIsNot (   $title)

titleProvider

Maps\Test\LocationParserTest::titleProvider ( )
Maps\Test\LocationParserTest::validInputProvider ( )
See also
ValueParserTestBase::validInputProvider
Since
3.0
Returns
array

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