Drupal 8  8.0.2
BubbleableMetadataTest Class Reference
Inheritance diagram for BubbleableMetadataTest:

Public Member Functions

 testMerge (BubbleableMetadata $a, CacheableMetadata $b, BubbleableMetadata $expected)
 
 providerTestMerge ()
 
 testAddAttachments (BubbleableMetadata $initial, $attachments, BubbleableMetadata $expected)
 
 providerTestAddAttachments ()
 
 testApplyTo (BubbleableMetadata $metadata, array $render_array, array $expected)
 
 providerTestApplyTo ()
 
 testCreateFromRenderArray (array $render_array, BubbleableMetadata $expected)
 
 providerTestCreateFromRenderArray ()
 
 testMergeAttachmentsLibraryMerging ()
 
 testMergeAttachmentsFeedMerging ($a, $b, $expected)
 
 providerTestMergeAttachmentsFeedMerging ()
 
 testMergeAttachmentsHtmlHeadMerging ($a, $b, $expected)
 
 providerTestMergeAttachmentsHtmlHeadMerging ()
 
 testMergeAttachmentsHtmlHeadLinkMerging ($a, $b, $expected)
 
 providerTestMergeAttachmentsHtmlHeadLinkMerging ()
 
 testMergeAttachmentsHttpHeaderMerging ($a, $b, $expected)
 
 providerTestMergeAttachmentsHttpHeaderMerging ()
 
 testAddCacheableDependency (BubbleableMetadata $a, $b, BubbleableMetadata $expected)
 
 providerTestAddCachableDependency ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Additional Inherited Members

- 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 inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Render

Member Function Documentation

providerTestAddAttachments ( )

Provides test data for testAddAttachments().

providerTestAddCachableDependency ( )

Provides test data for testMerge().

Returns
array
providerTestApplyTo ( )

Provides test data for testApplyTo().

Returns
array

References Cache\PERMANENT.

providerTestCreateFromRenderArray ( )

Provides test data for createFromRenderArray().

Returns
array

References Cache\PERMANENT.

providerTestMerge ( )

Provides test data for testMerge().

Returns
array

References Cache\PERMANENT.

providerTestMergeAttachmentsFeedMerging ( )

Data provider for testMergeAttachmentsFeedMerging

Returns
array
providerTestMergeAttachmentsHtmlHeadLinkMerging ( )

Data provider for testMergeAttachmentsHtmlHeadLinkMerging

Returns
array
providerTestMergeAttachmentsHtmlHeadMerging ( )

Data provider for testMergeAttachmentsHtmlHeadMerging

Returns
array
providerTestMergeAttachmentsHttpHeaderMerging ( )

Data provider for testMergeAttachmentsHttpHeaderMerging

Returns
array
testAddAttachments ( BubbleableMetadata  $initial,
  $attachments,
BubbleableMetadata  $expected 
)

::addAttachments ::setAttachments providerTestAddAttachments

This only tests at a high level, because it reuses existing logic. Detailed tests exist for the existing logic:

See Also
testMergeAttachmentsLibraryMerging()
testMergeAttachmentsFeedMerging()
testMergeAttachmentsHtmlHeadMerging()
testMergeAttachmentsHtmlHeadLinkMerging()
testMergeAttachmentsHttpHeaderMerging()

References AttachmentsInterface\addAttachments().

Here is the call graph for this function:

testAddCacheableDependency ( BubbleableMetadata  $a,
  $b,
BubbleableMetadata  $expected 
)

::addCacheableDependency providerTestMerge

This only tests at a high level, because it reuses existing logic. Detailed tests exist for the existing logic:

See Also
::testMergeTags()
::testMergeMaxAges()

References BubbleableMetadata\addCacheableDependency(), and Drupal\setContainer().

Here is the call graph for this function:

testApplyTo ( BubbleableMetadata  $metadata,
array  $render_array,
array  $expected 
)

::applyTo providerTestApplyTo

References BubbleableMetadata\applyTo().

Here is the call graph for this function:

testCreateFromRenderArray ( array  $render_array,
BubbleableMetadata  $expected 
)

::createFromRenderArray providerTestCreateFromRenderArray

References BubbleableMetadata\createFromRenderArray().

Here is the call graph for this function:

testMerge ( BubbleableMetadata  $a,
CacheableMetadata  $b,
BubbleableMetadata  $expected 
)

::merge providerTestMerge

This only tests at a high level, because it reuses existing logic. Detailed tests exist for the existing logic:

See Also
::testMergeTags()
::testMergeMaxAges()
testMergeAttachmentsLibraryMerging()
testMergeAttachmentsFeedMerging()
testMergeAttachmentsHtmlHeadMerging()
testMergeAttachmentsHtmlHeadLinkMerging()
testMergeAttachmentsHttpHeaderMerging()

References BubbleableMetadata\merge(), and Drupal\setContainer().

Here is the call graph for this function:

testMergeAttachmentsFeedMerging (   $a,
  $b,
  $expected 
)

Tests feed asset merging.

::mergeAttachments

providerTestMergeAttachmentsFeedMerging

References BubbleableMetadata\mergeAttachments().

Here is the call graph for this function:

testMergeAttachmentsHtmlHeadLinkMerging (   $a,
  $b,
  $expected 
)

Tests html_head_link asset merging.

::mergeAttachments

providerTestMergeAttachmentsHtmlHeadLinkMerging

References BubbleableMetadata\mergeAttachments().

Here is the call graph for this function:

testMergeAttachmentsHtmlHeadMerging (   $a,
  $b,
  $expected 
)

Tests html_head asset merging.

::mergeAttachments

providerTestMergeAttachmentsHtmlHeadMerging

References BubbleableMetadata\mergeAttachments().

Here is the call graph for this function:

testMergeAttachmentsHttpHeaderMerging (   $a,
  $b,
  $expected 
)

Tests http_header asset merging.

::mergeAttachments

providerTestMergeAttachmentsHttpHeaderMerging

References BubbleableMetadata\mergeAttachments().

Here is the call graph for this function:

testMergeAttachmentsLibraryMerging ( )

Tests library asset merging.

::mergeAttachments

References BubbleableMetadata\mergeAttachments().

Here is the call graph for this function:


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