function BackwardsCompatibilityClassLoaderTest::testTranslationWrapper
Same name and namespace in other branches
- 11.x core/tests/Drupal/KernelTests/Core/ClassLoader/BackwardsCompatibilityClassLoaderTest.php \Drupal\KernelTests\Core\ClassLoader\BackwardsCompatibilityClassLoaderTest::testTranslationWrapper()
Tests that the bc layer for TranslationWrapper works.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ ClassLoader/ BackwardsCompatibilityClassLoaderTest.php, line 36
Class
- BackwardsCompatibilityClassLoaderTest
- Tests Drupal\Core\ClassLoader\BackwardsCompatibilityClassLoader.
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.