function EntityReferenceSettingsTest::register

Same name in other branches
  1. 9 core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php \Drupal\Tests\field\Kernel\EntityReference\EntityReferenceSettingsTest::register()
  2. 8.9.x core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php \Drupal\Tests\field\Kernel\EntityReference\EntityReferenceSettingsTest::register()
  3. 11.x core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php \Drupal\Tests\field\Kernel\EntityReference\EntityReferenceSettingsTest::register()

Overrides KernelTestBase::register

File

core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php, line 187

Class

EntityReferenceSettingsTest
Tests entity reference field settings.

Namespace

Drupal\Tests\field\Kernel\EntityReference

Code

public function register(ContainerBuilder $container) {
    parent::register($container);
    $container->register($this->testLogServiceName, BufferingLogger::class)
        ->addTag('logger');
}

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