Semantic MediaWiki and related extensions
Public Member Functions | Protected Member Functions | List of all members
Lingo\Tests\Unit\LingoParserTest Class Reference
Inheritance diagram for Lingo\Tests\Unit\LingoParserTest:
Inheritance graph
[legend]
Collaboration diagram for Lingo\Tests\Unit\LingoParserTest:
Collaboration graph
[legend]

Public Member Functions

static testCanConstruct ()
 
 testGetInstance ()
 
 testParse ( $config)
 
 parseProvider ()
 

Protected Member Functions

 getParserMock ( $config=[])
 
 getTitleMock ( $config)
 
 getBackendMock ()
 

Detailed Description

extensions-lingo extensions-lingo-unit mediawiki-databaseless

::<private> ::<protected>

Member Function Documentation

◆ getBackendMock()

Lingo\Tests\Unit\LingoParserTest::getBackendMock ( )
protected
Returns
MockObject

◆ getParserMock()

Lingo\Tests\Unit\LingoParserTest::getParserMock (   $config = [])
protected
Returns
MockObject

◆ getTitleMock()

Lingo\Tests\Unit\LingoParserTest::getTitleMock (   $config)
protected
Parameters
$config
Returns
MockObject

◆ parseProvider()

Lingo\Tests\Unit\LingoParserTest::parseProvider ( )
Returns
array

◆ testCanConstruct()

static Lingo\Tests\Unit\LingoParserTest::testCanConstruct ( )

::__construct

◆ testGetInstance()

Lingo\Tests\Unit\LingoParserTest::testGetInstance ( )

This will NOT test the execution path in LingoParser::getInstance where the singleton is actually created as that path is executed during the initialisation of MW. It will test however that the singleton is of the correct class and that once created subsequent calls to LingoParser::getInstance will return the same object.

::getInstance

◆ testParse()

Lingo\Tests\Unit\LingoParserTest::testParse (   $config)

Tests

::parse parseProvider


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

About | General disclaimer | Privacy policy