FILE: ...es/contrib/menu_multilingual/tests/src/Functional/MenuMultilingualTest.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
--------------------------------------------------------------------------------
455 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
468 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
480 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
509 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
522 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
534 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
556 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead

Comments

mo_farhaz created an issue. See original summary.

mo_farhaz’s picture

Assigned: mo_farhaz » Unassigned
Status: Active » Needs review
StatusFileSize
new2.84 KB

please review.

kapilv’s picture

Issue tags: +warning
matsbla’s picture

Status: Needs review » Needs work
Drupal\Tests\menu_multilingual\Functional\MenuMultilingualTest::testViewsMenuItemTranslated
Error: Call to undefined method Drupal\Tests\menu_multilingual\Functional\MenuMultilingualTest::t()
suresh prabhu parkala’s picture

Status: Needs work » Needs review
StatusFileSize
new3.26 KB
new1.3 KB

Please review!

matsbla’s picture

Status: Needs review » Needs work

Hmm.
Look at this issue
#3133726: [meta] Remove usage of t() in tests not testing translation
I think maybe t() should not be used in these tests at all!

mrinalini9’s picture

Assigned: Unassigned » mrinalini9
mrinalini9’s picture

Assigned: mrinalini9 » Unassigned
Status: Needs work » Needs review
StatusFileSize
new2.78 KB
new2.82 KB

Updated patch as per the changes mentioned in #6.

  • matsbla committed 844c0e6 on 8.x-1.x authored by mrinalini9
    Issue #3130169 by mrinalini9, Suresh Prabhu Parkala, mo_farhaz: t()...
matsbla’s picture

Title: t() calls should be avoided in classes » t() calls should be avoided in tests
Status: Needs review » Fixed

Great, thanks!

Status: Fixed » Closed (fixed)

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