function SectionTest::testGetThirdPartySetting
Tests get third party setting.
@legacy-covers ::getThirdPartySetting
Attributes
#[DataProvider('providerTestGetThirdPartySetting')]
File
-
core/
modules/ layout_builder/ tests/ src/ Unit/ SectionTest.php, line 263
Class
Namespace
Drupal\Tests\layout_builder\UnitCode
public function testGetThirdPartySetting(string $provider, string $key, ?string $expected, mixed $default = FALSE) : void {
if ($default) {
$this->assertSame($expected, $this->section
->getThirdPartySetting($provider, $key, $default));
}
else {
$this->assertSame($expected, $this->section
->getThirdPartySetting($provider, $key));
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.