Extend unit test coverage for LanguageNegotiationContentEntity

Created on 22 April 2020, over 4 years ago
Updated 10 May 2023, over 1 year ago

Problem/Motivation

While functional tests are great, language negotiation is very complex, and a poorly understood bug introduced in one layer and fixed in another could easily slip by a functional test.
(from parent issue)

LanguageNegotiationContentEntity has no unit tests at the moment.

Proposed resolution

Add unit tests for the following methods - if possible - of LanguageNegotiationContentEntity:

  • ::getLangcode()
  • ::processOutbound()
  • ::getLanguageSwitchLinks()

Remaining tasks

Define the test scenarios for each method listed above.
Implement the tests.

📌 Task
Status

Fixed

Version

10.1

Component
Language system 

Last updated about 23 hours ago

  • Maintained by
  • 🇩🇪Germany @sun
Created by

🇨🇭Switzerland stefanos.petrakis@gmail.com Biel, Switzerland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024