The module uses deprecated t() calls. See report in attachments

Comments

lyalyuk created an issue. See original summary.

lyalyuk’s picture

Status: Active » Needs review
Issue tags: +KharkivCS
StatusFileSize
new5.2 KB
andypost’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1.57 KB
new4.81 KB

Testing code should not use t() and so just polished

+++ b/render_example/tests/src/Functional/RenderExampleTest.php
@@ -15,6 +16,8 @@ use Drupal\Tests\BrowserTestBase;
 class RenderExampleTest extends BrowserTestBase {
 
+  use StringTranslationTrait;

@@ -62,7 +65,7 @@ class RenderExampleTest extends BrowserTestBase {
-      t('Save configuration')
+      $this->t('Save configuration')

Test classes should not use translation, core tests mostly cleaned this usage

  • valthebald committed 71da2d0 on 8.x-1.x
    Issue #3072439 by lyalyuk, andypost: Use string translation trait in...
valthebald’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x-1.x, thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.