Drupal 8  8.0.2
DefaultLazyPluginCollectionTest Class Reference
Inheritance diagram for DefaultLazyPluginCollectionTest:

Public Member Functions

 testHas ()
 
 testGet ()
 
 testGetNotExistingPlugin ()
 
 providerTestSortHelper ()
 
 testSortHelper ($plugin_id_1, $plugin_id_2, $expected)
 
 testGetConfiguration ()
 
 testAddInstanceId ()
 
 testRemoveInstanceId ()
 
 testSetInstanceConfiguration ()
 
 testCount ()
 
 testClear ()
 
 testSet ()
 
 testConfigurableGetConfiguration ()
 
 testConfigurableSetConfiguration ()
 
- Public Member Functions inherited from LazyPluginCollectionTestBase
 returnPluginMap ($plugin_id)
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 getPluginMock ($plugin_id, array $definition)
 
- Protected Member Functions inherited from LazyPluginCollectionTestBase
 setUp ()
 
 setupPluginCollection (\PHPUnit_Framework_MockObject_Matcher_InvokedRecorder $create_count=NULL)
 
 getPluginMock ($plugin_id, array $definition)
 
 getPluginDefinitions ()
 
- 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

 $pluginInstances
 
- Protected Attributes inherited from LazyPluginCollectionTestBase
 $pluginManager
 
 $defaultPluginCollection
 
 $pluginInstances
 
 $config
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Plugin

Member Function Documentation

getPluginMock (   $plugin_id,
array  $definition 
)
protected

{}

References Drupal\config().

Here is the call graph for this function:

providerTestSortHelper ( )

Provides test data for testSortHelper.

Returns
array The test data.
testAddInstanceId ( )

::addInstanceId

References Drupal\config(), and LazyPluginCollectionTestBase\setupPluginCollection().

Here is the call graph for this function:

testClear ( )

::clear

References LazyPluginCollectionTestBase\setupPluginCollection().

Here is the call graph for this function:

testConfigurableGetConfiguration ( )

::getConfiguration

References Drupal\config(), and LazyPluginCollectionTestBase\setupPluginCollection().

Here is the call graph for this function:

testConfigurableSetConfiguration ( )

::setConfiguration

References LazyPluginCollectionTestBase\setupPluginCollection().

Here is the call graph for this function:

testCount ( )

::count

References LazyPluginCollectionTestBase\setupPluginCollection().

Here is the call graph for this function:

testGet ( )

::get

References LazyPluginCollectionTestBase\setupPluginCollection().

Here is the call graph for this function:

testGetConfiguration ( )

::getConfiguration

References LazyPluginCollectionTestBase\setupPluginCollection().

Here is the call graph for this function:

testGetNotExistingPlugin ( )

::get Plugin ID 'pear' was not found.

References LazyPluginCollectionTestBase\setupPluginCollection().

Here is the call graph for this function:

testHas ( )

::has

References LazyPluginCollectionTestBase\getPluginDefinitions(), and LazyPluginCollectionTestBase\setupPluginCollection().

Here is the call graph for this function:

testRemoveInstanceId ( )

::removeInstanceId

References LazyPluginCollectionTestBase\setupPluginCollection().

Here is the call graph for this function:

testSet ( )

::set

References Drupal\config(), and LazyPluginCollectionTestBase\setupPluginCollection().

Here is the call graph for this function:

testSetInstanceConfiguration ( )

::setInstanceConfiguration

References LazyPluginCollectionTestBase\setupPluginCollection().

Here is the call graph for this function:

testSortHelper (   $plugin_id_1,
  $plugin_id_2,
  $expected 
)
Parameters
string$plugin_id_1The first plugin ID.
string$plugin_id_2The second plugin ID.
int$expectedThe expected result.

::sortHelper providerTestSortHelper

References LazyPluginCollectionTestBase\setupPluginCollection().

Here is the call graph for this function:


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