function BackwardsCompatibilityClassLoaderTest::testTranslationWrapper
Tests that the bc layer for TranslationWrapper works.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ ClassLoader/ BackwardsCompatibilityClassLoaderTest.php, line 27
Class
- BackwardsCompatibilityClassLoaderTest
- @coversDefaultClass Drupal\Core\ClassLoader\BackwardsCompatibilityClassLoader @group ClassLoader
Namespace
Drupal\KernelTests\Core\ClassLoaderCode
public function testTranslationWrapper() : void {
// @phpstan-ignore class.notFound
$object = new TranslationWrapper('Backward compatibility');
$this->assertInstanceOf(TranslatableMarkup::class, $object);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.