Drupal 8  8.0.2
InfoParserUnitTest Class Reference
Inheritance diagram for InfoParserUnitTest:

Public Member Functions

 testInfoParserNonExisting ()
 
 testInfoParserBroken ()
 
 testInfoParserMissingKeys ()
 
 testInfoParserMissingKey ()
 
 testInfoParserCommonInfo ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from UnitTestCase
 setUp ()
 
 getRandomGenerator ()
 
 assertArrayEquals (array $expected, array $actual, $message=NULL)
 
 getBlockMockWithMachineName ($machine_name)
 
 getContainerWithCacheTagsInvalidator (CacheTagsInvalidatorInterface $cache_tags_validator)
 
 getClassResolverStub ()
 

Protected Attributes

 $infoParser
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Tests InfoParser class and exception.

Files for this test are stored in core/modules/system/tests/fixtures and end with .info.txt instead of info.yml in order not not be considered as real extensions.

Extension

Member Function Documentation

setUp ( )
protected

{}

testInfoParserBroken ( )

Test if correct exception is thrown for a broken info file.

::parse

#broken.info.txt#

References Drupal\VERSION.

testInfoParserCommonInfo ( )

Tests common info file.

::parse

References Drupal\VERSION.

testInfoParserMissingKey ( )

Tests that missing required key is detected.

::parse

#Missing required keys (type) in .+?missing_key.info.txt#

References Drupal\VERSION.

testInfoParserMissingKeys ( )

Tests that missing required keys are detected.

::parse

#Missing required keys (type, core, name) in .+?missing_keys.info.txt#

References Drupal\VERSION.

testInfoParserNonExisting ( )

Tests the functionality of the infoParser object.

::parse


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