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

EWPP-1557: Translate "@date in" to Arabic and Turkish languages. #958

Merged
merged 4 commits into from
Nov 10, 2021

Conversation

yenyasinn
Copy link
Contributor

No description provided.

@yenyasinn yenyasinn force-pushed the EWPP-1557 branch 2 times, most recently from fbb2a85 to 6b2ebc1 Compare September 30, 2021 13:01
@yenyasinn yenyasinn changed the base branch from EWPP-1478 to 3.x September 30, 2021 13:02
22Alexandra
22Alexandra previously approved these changes Oct 5, 2021
Copy link
Contributor

@brummbar brummbar left a comment

Choose a reason for hiding this comment

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

Blocking for review on me

$result = $this->container->get('renderer')->renderRoot($render_string);
$this->assertEquals('This a string with the <a href="http://www.example.com">link</a>', $result);

// Twig doesn't escape Markup object.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// Twig doesn't escape Markup object.
// Twig doesn't escape Markup objects.

* Test create_markup filter.
*/
public function testCreateMarkup() {
// Twig escapes strings from the variable by default.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// Twig escapes strings from the variable by default.
// Twig escapes string variables by default.

/**
* Test create_markup filter.
*/
public function testCreateMarkup() {
Copy link
Contributor

Choose a reason for hiding this comment

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

This test doesn't need Drupal to be bootstrapped, and it could be written as unit test in /modules/oe_theme_helper/tests/src/Unit/TwigExtensionTest.php.
We can test that the filter returns a markup object by doing $this->extension->createMarkup() too, aside from doing a render test.

brummbar
brummbar previously approved these changes Oct 21, 2021
nagyad
nagyad previously approved these changes Oct 22, 2021
@upchuk upchuk merged commit 3580a88 into 3.x Nov 10, 2021
@upchuk upchuk deleted the EWPP-1557 branch November 10, 2021 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants