Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

18337: Placeholders VALIDFROM and VALIDUNTIL at email templates do not use localized dates #2880

Merged

Conversation

gabrieljenik
Copy link
Collaborator

Tests for localize_date were added

…t use localized dates

Tests for localize_date were added
Copy link
Collaborator

@Shnoulle Shnoulle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems you don't use lss file, if not : \Yii::import('application.core.plugins.dateFunctions.EMFunctions', true); is great just remove the lss file and import.

If yes : use included function and helper for activate plugin and import survey

tests/unit/plugins/LocalizeDateTest.php Show resolved Hide resolved
tests/unit/plugins/LocalizeDateTest.php Outdated Show resolved Hide resolved
@gabrieljenik
Copy link
Collaborator Author

Seems you don't use lss file

I do use it.

If yes : use included function and helper for activate plugin and import survey

I import LSS as needed to run the test
Call plugin function directly.

What's wrong with current way?

@Shnoulle
Copy link
Collaborator

I import LSS as needed to run the test

I don't understand : you don't use lss file here. Best is to be clear : this test don't do WebDriver. The lss file is not needed.

@Shnoulle
Copy link
Collaborator

Seems you don't use lss file

I do use it.

Where ? I really think you don't use it. Maybe i made an error , but looking at code : you don't use it.

…t use localized dates

Survey was placed in the path contained in self::$surveysFolder
@sonarcloud
Copy link

sonarcloud bot commented Jan 31, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 10 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@Shnoulle Shnoulle added Code review done Version checked for code issue without testing and removed Needs code review labels Jan 31, 2023
@Shnoulle
Copy link
Collaborator

👍

@gabrieljenik
Copy link
Collaborator Author

@olleharstedt Being this an automated test, should I markit as tested now that is green?

@olleharstedt
Copy link
Collaborator

@olleharstedt Being this an automated test, should I markit as tested now that is green?

Hmmm maybe we should add a new tag for automated test added?

@olleharstedt olleharstedt merged commit 419267b into master Feb 1, 2023
@c-schmitz c-schmitz deleted the bug/18337-tst-placeholders-VALIDFROM-and-VALIDUNTIL branch June 20, 2023 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code review done Version checked for code issue without testing
Projects
None yet
4 participants