You are here

public function LayoutEntityHelperTraitTest::testGetInlineBlockComponents in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/tests/src/Unit/LayoutEntityHelperTraitTest.php \Drupal\Tests\layout_builder\Unit\LayoutEntityHelperTraitTest::testGetInlineBlockComponents()

@covers ::getInlineBlockComponents

@dataProvider providerSectionsWithInlineComponents

File

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

Class

LayoutEntityHelperTraitTest
@coversDefaultClass \Drupal\layout_builder\LayoutEntityHelperTrait

Namespace

Drupal\Tests\layout_builder\Unit

Code

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