function LayoutEntityHelperTraitTest::testGetInlineBlockComponents

Same name and namespace in other branches
  1. 11.x core/modules/layout_builder/tests/src/Unit/LayoutEntityHelperTraitTest.php \Drupal\Tests\layout_builder\Unit\LayoutEntityHelperTraitTest::testGetInlineBlockComponents()
  2. 10 core/modules/layout_builder/tests/src/Unit/LayoutEntityHelperTraitTest.php \Drupal\Tests\layout_builder\Unit\LayoutEntityHelperTraitTest::testGetInlineBlockComponents()
  3. 9 core/modules/layout_builder/tests/src/Unit/LayoutEntityHelperTraitTest.php \Drupal\Tests\layout_builder\Unit\LayoutEntityHelperTraitTest::testGetInlineBlockComponents()
  4. 8.9.x core/modules/layout_builder/tests/src/Unit/LayoutEntityHelperTraitTest.php \Drupal\Tests\layout_builder\Unit\LayoutEntityHelperTraitTest::testGetInlineBlockComponents()

Tests get inline block components.

Attributes

#[DataProvider('providerSectionsWithInlineComponents')]

File

core/modules/layout_builder/tests/src/Unit/LayoutEntityHelperTraitTest.php, line 98

Class

LayoutEntityHelperTraitTest
Tests Drupal\layout_builder\LayoutEntityHelperTrait.

Namespace

Drupal\Tests\layout_builder\Unit

Code

public function testGetInlineBlockComponents(array $sections, array $expected_components, array $expected_revision_ids) : void {
  $test_class = new TestClass();
  $this->assertSame($expected_components, $test_class->getInlineBlockComponents($sections));
}

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