function PluginSettingsBaseTest::testGetThirdPartySettings
@covers ::getThirdPartySettings
      
    
File
- 
              core/tests/ Drupal/ Tests/ Core/ Field/ PluginSettingsBaseTest.php, line 19 
Class
- PluginSettingsBaseTest
- @coversDefaultClass \Drupal\Core\Field\PluginSettingsBase[[api-linebreak]] @group Field
Namespace
Drupal\Tests\Core\FieldCode
public function testGetThirdPartySettings() : void {
  $plugin_settings = new TestPluginSettingsBase();
  $this->assertSame([], $plugin_settings->getThirdPartySettings());
  $this->assertSame([], $plugin_settings->getThirdPartySettings('test'));
  $plugin_settings->setThirdPartySetting('test', 'foo', 'bar');
  $this->assertSame([
    'foo' => 'bar',
  ], $plugin_settings->getThirdPartySettings('test'));
  $this->assertSame([], $plugin_settings->getThirdPartySettings('test2'));
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
