function SectionTest::testGetThirdPartyProviders

Tests get third party providers.

@legacy-covers ::getThirdPartyProviders

File

core/modules/layout_builder/tests/src/Unit/SectionTest.php, line 403

Class

SectionTest
Tests Drupal\layout_builder\Section.

Namespace

Drupal\Tests\layout_builder\Unit

Code

public function testGetThirdPartyProviders() : void {
  $this->assertSame([
    'bad_judgement',
    'hunt_and_peck',
  ], $this->section
    ->getThirdPartyProviders());
  $this->section
    ->unsetThirdPartySetting('hunt_and_peck', 'delay');
  $this->assertSame([
    'bad_judgement',
  ], $this->section
    ->getThirdPartyProviders());
}

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