function FieldUiTest::testGetNextDestination
Same name and namespace in other branches
- 10 core/modules/field_ui/tests/src/Unit/FieldUiTest.php \Drupal\Tests\field_ui\Unit\FieldUiTest::testGetNextDestination()
- 9 core/modules/field_ui/tests/src/Unit/FieldUiTest.php \Drupal\Tests\field_ui\Unit\FieldUiTest::testGetNextDestination()
- 8.9.x core/modules/field_ui/tests/src/Unit/FieldUiTest.php \Drupal\Tests\field_ui\Unit\FieldUiTest::testGetNextDestination()
Tests get next destination.
@legacy-covers ::getNextDestination
File
-
core/
modules/ field_ui/ tests/ src/ Unit/ FieldUiTest.php, line 44
Class
Namespace
Drupal\Tests\field_ui\UnitCode
public function testGetNextDestination() : void {
$destinations = [
'admin',
'admin/content',
];
$expected_uri = 'base:admin';
$expected_query = [
'destinations' => [
'admin/content',
],
];
$actual = FieldUI::getNextDestination($destinations);
$this->assertSame($expected_uri, $actual->getUri());
$this->assertSame($expected_query, $actual->getOption('query'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.