function TranslationWrapperTest::testTranslationWrapper

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/StringTranslation/TranslationWrapperTest.php \Drupal\Tests\Core\StringTranslation\TranslationWrapperTest::testTranslationWrapper()
  2. 10 core/tests/Drupal/Tests/Core/StringTranslation/TranslationWrapperTest.php \Drupal\Tests\Core\StringTranslation\TranslationWrapperTest::testTranslationWrapper()

@covers ::__construct

File

core/tests/Drupal/Tests/Core/StringTranslation/TranslationWrapperTest.php, line 22

Class

TranslationWrapperTest
Tests the TranslationWrapper backward compatibility layer.

Namespace

Drupal\Tests\Core\StringTranslation

Code

public function testTranslationWrapper() : void {
    $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.