Drupal 8  8.0.2
DrupalTest Class Reference
Inheritance diagram for DrupalTest:

Public Member Functions

 testSetContainer ()
 
 testGetContainerException ()
 
 testService ()
 
 testCurrentUser ()
 
 testEntityManager ()
 
 testEntityTypeManager ()
 
 testDatabase ()
 
 testCache ()
 
 testKeyValueExpirable ()
 
 testLock ()
 
 testConfig ()
 
 testQueue ()
 
 testRequestStack ()
 
 testKeyValue ()
 
 testState ()
 
 testHttpClient ()
 
 testEntityQuery ()
 
 testEntityQueryAggregate ()
 
 testFlood ()
 
 testModuleHandler ()
 
 testTypedDataManager ()
 
 testToken ()
 
 testUrlGenerator ()
 
 testUrl ()
 
 testLinkGenerator ()
 
 testL ()
 
 testTranslation ()
 
 testLanguageManager ()
 
 testCsrfToken ()
 
 testTransliteration ()
 
 testFormBuilder ()
 
 testMenuTree ()
 
 testPathValidator ()
 
 testAccessManager ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
 setMockContainerService ($service_name, $return=NULL)
 
- 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

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

Detailed Description

Tests the Drupal class.

DrupalTest

Member Function Documentation

setMockContainerService (   $service_name,
  $return = NULL 
)
protected
setUp ( )
protected

{}

testAccessManager ( )

Tests the accessManager() method.

::accessManager

References Drupal\accessManager(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testCache ( )

Tests the service() method.

::cache

References Drupal\cache(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testConfig ( )

Tests the config() method.

::config

References Drupal\config(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testCsrfToken ( )

Tests the csrfToken() method.

::csrfToken

References Drupal\csrfToken(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testCurrentUser ( )

Tests the currentUser() method.

::currentUser

References Drupal\currentUser(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testDatabase ( )

Tests the database() method.

::database

References Drupal\database(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testEntityManager ( )

Tests the entityManager() method.

::entityManager

References Drupal\entityManager(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testEntityQuery ( )

Tests the entityQuery() method.

::entityQuery

References Drupal\entityQuery(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testEntityQueryAggregate ( )

Tests the entityQueryAggregate() method.

::entityQueryAggregate

References Drupal\entityQueryAggregate(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testEntityTypeManager ( )

Tests the entityTypeManager() method.

::entityTypeManager

References Drupal\entityTypeManager(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testFlood ( )

Tests the flood() method.

::flood

References Drupal\flood(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testFormBuilder ( )

Tests the formBuilder() method.

::formBuilder

References Drupal\formBuilder(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testGetContainerException ( )

::getContainer

::$container is not initialized yet. ::setContainer() must be called with a real container.

References Drupal\getContainer().

Here is the call graph for this function:

testHttpClient ( )

Tests the httpClient() method.

::httpClient

References Drupal\httpClient(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testKeyValue ( )

Tests the keyValue() method.

::keyValue

References Drupal\keyValue(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testKeyValueExpirable ( )

Tests the keyValueExpirable() method.

::keyValueExpirable

References Drupal\keyValueExpirable(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testL ( )

Tests the l() method.

::l

See Also
::generate()

References Drupal\l(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testLanguageManager ( )

Tests the languageManager() method.

::languageManager

References Drupal\languageManager(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testLinkGenerator ( )

Tests the linkGenerator() method.

::linkGenerator

References Drupal\linkGenerator(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testLock ( )

Tests the lock() method.

::lock

References Drupal\lock(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testMenuTree ( )

Tests the menuTree() method.

::menuTree

References Drupal\menuTree(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testModuleHandler ( )

Tests the moduleHandler() method.

::moduleHandler

References Drupal\moduleHandler(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testPathValidator ( )

Tests the pathValidator() method.

::pathValidator

References Drupal\pathValidator(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testQueue ( )

Tests the queue() method.

::queue

References Drupal\queue(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testRequestStack ( )

Tests the testRequestStack() method.

::requestStack

References Drupal\requestStack(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testService ( )

Tests the service() method.

::service

References Drupal\service(), and DrupalTest\setMockContainerService().

Here is the call graph for this function:

testSetContainer ( )

Tests the get/setContainer() method.

::getContainer

References Drupal\getContainer(), and Drupal\setContainer().

Here is the call graph for this function:

testState ( )

Tests the state() method.

::state

References DrupalTest\setMockContainerService(), and Drupal\state().

Here is the call graph for this function:

testToken ( )

Tests the token() method.

::token

References DrupalTest\setMockContainerService(), and Drupal\token().

Here is the call graph for this function:

testTranslation ( )

Tests the translation() method.

::translation

References DrupalTest\setMockContainerService(), and Drupal\translation().

Here is the call graph for this function:

testTransliteration ( )

Tests the transliteration() method.

::transliteration

References DrupalTest\setMockContainerService(), and Drupal\transliteration().

Here is the call graph for this function:

testTypedDataManager ( )

Tests the typedDataManager() method.

::typedDataManager

References DrupalTest\setMockContainerService(), and Drupal\typedDataManager().

Here is the call graph for this function:

testUrl ( )

Tests the url() method.

::url

See Also
::generateFromRoute()

References DrupalTest\setMockContainerService(), and Drupal\url().

Here is the call graph for this function:

testUrlGenerator ( )

Tests the urlGenerator() method.

::urlGenerator

References DrupalTest\setMockContainerService(), and Drupal\urlGenerator().

Here is the call graph for this function:


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