You are here

public function UtilityTest::testSanitizedSuggestion in Menu Item Extras 8.2

Check sanitizing of suggestions.

File

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

Class

UtilityTest
Class UtilityTest.

Namespace

Drupal\Tests\menu_item_extras\Unit

Code

public function testSanitizedSuggestion() {
  $this
    ->assertEquals('one__two__three', Utility::suggestion(Utility::sanitizeMachineName('one!@#$!#'), Utility::sanitizeMachineName('t!@#$w!@#$@!o_'), Utility::sanitizeMachineName('___three')));
}