function DrupalKernelTest::testLocale
Tests system locale.
File
- 
              core/
tests/ Drupal/ KernelTests/ Core/ DrupalKernel/ DrupalKernelTest.php, line 303  
Class
- DrupalKernelTest
 - Tests DIC compilation to disk.
 
Namespace
Drupal\KernelTests\Core\DrupalKernelCode
public function testLocale() : void {
  $utf8_string = 'äöüßαβγδεζηθικλμνξοσὠ';
  // Test environment locale should be UTF-8.
  $this->assertSame($utf8_string, escapeshellcmd($utf8_string));
  $request = Request::createFromGlobals();
  $kernel = $this->getTestKernel($request);
  // Kernel environment locale should be UTF-8.
  $this->assertSame($utf8_string, escapeshellcmd($utf8_string));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.