You are here

public function ConversionHelperTest::testUnescape in Lightweight Directory Access Protocol (LDAP) 8.4

Test the unescape mechanism.

File

ldap_servers/tests/src/Unit/ConversionHelperTest.php, line 20

Class

ConversionHelperTest
Conversion helper tests.

Namespace

Drupal\Tests\ldap_servers\Unit

Code

public function testUnescape() : void {
  $input = 'Secretaria de Tecnologia da Informa\\C3\\A7\\C3\\A3o';
  $output = ConversionHelper::unescapeDnValue($input);
  self::assertEquals('Secretaria de Tecnologia da Informação', $output);
}