-
Notifications
You must be signed in to change notification settings - Fork 32
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
Conversation
0dfb871
to
e1888c7
Compare
fbb2a85
to
6b2ebc1
Compare
There was a problem hiding this 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Twig escapes strings from the variable by default. | |
// Twig escapes string variables by default. |
/** | ||
* Test create_markup filter. | ||
*/ | ||
public function testCreateMarkup() { |
There was a problem hiding this comment.
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.
No description provided.