Hi community
In our application we use the tsf_translate function for the translation of messages in our business logic (see post
for details) .
However, we have some problems using the translated messages in unit tests. The function is depends on the session_variable ‘tsf_appl_lang_id’, but this is not set during the execution of the unit-test.
Setting the session_context for ‘tsf_appl_lang_id’ in the preparation of a unit-test is also not possible, resulting in an error ‘Cannot set key 'tsf_appl_lang_id' in the session context. The key has been set as read_only for this session.’ during the execution of the unit-test.
Any ideas how to test for messages generated by tsf_translate in a unit-test?
Your help would be appreciated.
Best answer by Mark Jongeling
View original