public function ElementTest::testToTail in Lightning Core 8
Same name and namespace in other branches
- 8.5 tests/src/Unit/ElementTest.php \Drupal\Tests\lightning_core\Unit\ElementTest::testToTail()
- 8.2 tests/src/Unit/ElementTest.php \Drupal\Tests\lightning_core\Unit\ElementTest::testToTail()
- 8.3 tests/src/Unit/ElementTest.php \Drupal\Tests\lightning_core\Unit\ElementTest::testToTail()
- 8.4 tests/src/Unit/ElementTest.php \Drupal\Tests\lightning_core\Unit\ElementTest::testToTail()
@covers ::toTail
File
- tests/
src/ Unit/ ElementTest.php, line 31
Class
- ElementTest
- @coversDefaultClass \Drupal\lightning_core\Element
Namespace
Drupal\Tests\lightning_core\UnitCode
public function testToTail() {
$items = [
'here',
'everywhere',
'there',
];
$items = array_combine($items, $items);
Element::toTail($items, 'everywhere');
$this
->assertSame([
'here',
'there',
'everywhere',
], array_keys($items));
}