function SectionTest::testGetThirdPartyProviders

Same name in other branches
  1. 9 core/modules/layout_builder/tests/src/Unit/SectionTest.php \Drupal\Tests\layout_builder\Unit\SectionTest::testGetThirdPartyProviders()
  2. 8.9.x core/modules/layout_builder/tests/src/Unit/SectionTest.php \Drupal\Tests\layout_builder\Unit\SectionTest::testGetThirdPartyProviders()
  3. 11.x 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 367

Class

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

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.