Refactor logic for detection of translations installed from .org

[MAILPOET-4144]
This commit is contained in:
Rostislav Wolny
2022-03-15 13:59:38 +01:00
committed by Veljko V
parent fc5b25dd20
commit 00b0723f96
2 changed files with 11 additions and 3 deletions

View File

@@ -138,10 +138,16 @@ class TranslationUpdaterTest extends \MailPoetTest {
'wpGetInstalledTranslations' => function() {
return [
$this->freeSlug => [
'fr_FR' => ['PO-Revision-Date' => '2021-10-15 05:18:35'],
'fr_FR' => [
'PO-Revision-Date' => '2021-10-15 05:18:35',
'Project-Id-Version' => 'MailPoet - MailPoet',
],
],
$this->premiumSlug => [
'fr_FR' => ['PO-Revision-Date' => '2021-10-15 05:18:35'],
'fr_FR' => [
'PO-Revision-Date' => '2021-10-15 05:18:35',
'Project-Id-Version' => 'MailPoet - MailPoet Premium',
],
],
];
},
@@ -194,6 +200,7 @@ class TranslationUpdaterTest extends \MailPoetTest {
],
$this->premiumSlug => [
'fr_FR' => ['PO-Revision-Date' => '2021-10-15 05:18:35'],
'Project-Id-Version' => 'MailPoet - MailPoet Premium',
],
];
},