You are here

public function SectionTest::testGetThirdPartyProviders in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/tests/src/Unit/SectionTest.php \Drupal\Tests\layout_builder\Unit\SectionTest::testGetThirdPartyProviders()

@covers ::getThirdPartyProviders

File

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

Class

SectionTest
@coversDefaultClass \Drupal\layout_builder\Section @group layout_builder

Namespace

Drupal\Tests\layout_builder\Unit

Code

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