Add test for gettext

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
This commit is contained in:
Maurício Meneghini Fauth 2017-03-20 09:27:15 -03:00
parent 4bbe23f1df
commit 53f93afe0c
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1 @@
<?= __('Text');

View File

@ -0,0 +1 @@
{% trans "Text" %}

View File

@ -109,4 +109,21 @@ class TemplateTest extends PMATestCase
)
);
}
/**
* Test for render
*
* @return void
*/
public function testRenderGettext()
{
$this->assertEquals(
'Text',
PMA\libraries\Template::get('test/gettext')->render()
);
$this->assertEquals(
'Text',
PMA\libraries\Template::get('test/gettext_twig')->render()
);
}
}