function BubbleableMetadataTest::testMergeAttachmentsFeedMerging

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php \Drupal\Tests\Core\Render\BubbleableMetadataTest::testMergeAttachmentsFeedMerging()

Tests feed asset merging.

@covers ::mergeAttachments

@dataProvider providerTestMergeAttachmentsFeedMerging

File

core/modules/aggregator/tests/src/Unit/BubbleableMetadataTest.php, line 22

Class

BubbleableMetadataTest
@coversDefaultClass \Drupal\Core\Render\BubbleableMetadata @group aggregator @group legacy

Namespace

Drupal\Tests\aggregator\Unit

Code

public function testMergeAttachmentsFeedMerging($a, $b, $expected) {
    $this->assertSame($expected, BubbleableMetadata::mergeAttachments($a, $b));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.