You are here

public function UtilityTest::testSuggestion in Menu Item Extras 8.2

Test suggestion utility.

File

tests/src/Unit/UtilityTest.php, line 37

Class

UtilityTest
Class UtilityTest.

Namespace

Drupal\Tests\menu_item_extras\Unit

Code

public function testSuggestion() {
  $this
    ->assertEquals('one__two__three', Utility::suggestion('one', 'two', 'three'));
  $this
    ->assertEquals('one', Utility::suggestion('one'));
}