Enforce array trailling commas
[MAILPOET-2090]
This commit is contained in:
@ -13,13 +13,13 @@ class FunctionsTest extends \MailPoetTest {
|
||||
$twig->addExtension(new Functions());
|
||||
|
||||
WPFunctions::set(Stub::make(new WPFunctions, [
|
||||
'isRtl' => true
|
||||
'isRtl' => true,
|
||||
]));
|
||||
$result = $twig->render('template');
|
||||
expect($result)->equals('rtl');
|
||||
|
||||
WPFunctions::set(Stub::make(new WPFunctions, [
|
||||
'isRtl' => false
|
||||
'isRtl' => false,
|
||||
]));
|
||||
$result = $twig->render('template');
|
||||
expect($result)->isEmpty();
|
||||
|
Reference in New Issue
Block a user