function FieldUiTest::testGetNextDestinationEmpty

Same name and namespace in other branches
  1. 8.9.x core/modules/field_ui/tests/src/Unit/FieldUiTest.php \Drupal\Tests\field_ui\Unit\FieldUiTest::testGetNextDestinationEmpty()
  2. 10 core/modules/field_ui/tests/src/Unit/FieldUiTest.php \Drupal\Tests\field_ui\Unit\FieldUiTest::testGetNextDestinationEmpty()
  3. 11.x core/modules/field_ui/tests/src/Unit/FieldUiTest.php \Drupal\Tests\field_ui\Unit\FieldUiTest::testGetNextDestinationEmpty()

@covers ::getNextDestination

File

core/modules/field_ui/tests/src/Unit/FieldUiTest.php, line 52

Class

FieldUiTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21field_ui%21src%21FieldUI.php/class/FieldUI/9" title="Static service container wrapper for Field UI." class="local">\Drupal\field_ui\FieldUI</a>

Namespace

Drupal\Tests\field_ui\Unit

Code

public function testGetNextDestinationEmpty() {
    $destinations = [];
    $actual = FieldUI::getNextDestination($destinations);
    $this->assertNull($actual);
}

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