public function FieldUiTest::testGetNextDestination in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/field_ui/tests/src/Unit/FieldUiTest.php \Drupal\Tests\field_ui\Unit\FieldUiTest::testGetNextDestination()
@covers ::getNextDestination
File
- core/
modules/ field_ui/ tests/ src/ Unit/ FieldUiTest.php, line 43 - Contains \Drupal\Tests\field_ui\Unit\FieldUiTest.
Class
- FieldUiTest
- @coversDefaultClass \Drupal\field_ui\FieldUI
Namespace
Drupal\Tests\field_ui\UnitCode
public function testGetNextDestination() {
$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'));
}