function FieldTypePluginManagerTest::testGetGroupedDefinitionsEmpty

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/Core/Field/FieldTypePluginManagerTest.php \Drupal\Tests\Core\Field\FieldTypePluginManagerTest::testGetGroupedDefinitionsEmpty()

@covers ::getGroupedDefinitions

File

core/tests/Drupal/Tests/Core/Field/FieldTypePluginManagerTest.php, line 175

Class

FieldTypePluginManagerTest
@coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Field%21FieldTypePluginManager.php/class/FieldTypePluginManager/11.x" title="Plugin manager for &#039;field type&#039; plugins." class="local">\Drupal\Core\Field\FieldTypePluginManager</a> @group Field

Namespace

Drupal\Tests\Core\Field

Code

public function testGetGroupedDefinitionsEmpty() : void {
    $this->fieldTypeCategoryManager
        ->getDefinitions()
        ->willReturn([]);
    $this->assertEquals([], $this->fieldTypeManager
        ->getGroupedDefinitions([]));
}

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