You are here

protected function LayoutBuilderInlineBlockStubCleanupTest::setUp in Acquia Content Hub 8.2

Throws

\Exception

Overrides KernelTestBase::setUp

File

tests/src/Kernel/EventSubscriber/CleanUpStubs/LayoutBuilderInlineBlockStubCleanupTest.php, line 48

Class

LayoutBuilderInlineBlockStubCleanupTest
Test that LB inline block is handled correctly in CLEANUP_STUBS event.

Namespace

Drupal\Tests\acquia_contenthub\Kernel\EventSubscriber\CleanUpStubs

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('block_content');
  $this
    ->installEntitySchema('field_config');
  $this
    ->installSchema('layout_builder', 'inline_block_usage');
  $this->dispatcher = $this->container
    ->get('event_dispatcher');
}