You are here

public function UnicodeTest::testSetStatus in Drupal 8

@group legacy @expectedDeprecation \Drupal\Component\Utility\Unicode::setStatus() is deprecated in Drupal 8.6.0 and will be removed before Drupal 9.0.0. In Drupal 9 there will be no way to set the status and in Drupal 8 this ability has been removed because mb_*() functions are supplied using Symfony's polyfill. See https://www.drupal.org/node/2850048.

File

core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php, line 21

Class

UnicodeTest
Test unicode handling features implemented in Unicode component.

Namespace

Drupal\Tests\Component\Utility

Code

public function testSetStatus() {
  Unicode::setStatus(Unicode::STATUS_SINGLEBYTE);
}