Skip to content

Commit c0abc1a

Browse files
author
David Alger
committed
MAGETWO-37843: All responsive email templates in Blank Theme
- reverted relative class references
1 parent b8fe8ee commit c0abc1a

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

dev/tests/static/testsuite/Magento/Test/Integrity/App/Language/TranslationFilesTest.php

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
namespace Magento\Test\Integrity\App\Language;
77

88
use Magento\Framework\App\Utility\Files;
9-
use Magento\Setup\Module\I18n;
10-
use Magento\Setup\Module\I18n\Pack\Writer;
119
use Magento\Setup\Module\I18n\Dictionary\Options\ResolverFactory;
10+
use Magento\Setup\Module\I18n\Locale;
11+
use Magento\Setup\Module\I18n\Pack\Writer\File\Csv;
1212

1313
/**
1414
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
@@ -80,7 +80,7 @@ protected function buildFilePath($phrase, $context)
8080
{
8181
$path = $this->getContext()->buildPathToLocaleDirectoryByContext($phrase->getContextType(), $context);
8282
$sourcePath = Files::init()->getPathToSource();
83-
return $sourcePath . '/' . $path . I18n\Locale::DEFAULT_SYSTEM_LOCALE . '.' . Writer\File\Csv::FILE_EXTENSION;
83+
return $sourcePath . '/' . $path . Locale::DEFAULT_SYSTEM_LOCALE . '.' . Csv::FILE_EXTENSION;
8484
}
8585

8686
/**
@@ -89,7 +89,7 @@ protected function buildFilePath($phrase, $context)
8989
protected function getContext()
9090
{
9191
if ($this->context === null) {
92-
$this->context = new I18n\Context();
92+
$this->context = new \Magento\Setup\Module\I18n\Context();
9393
}
9494
return $this->context;
9595
}
@@ -99,19 +99,23 @@ protected function getContext()
9999
*/
100100
protected function prepareParser()
101101
{
102-
$filesCollector = new I18n\FilesCollector();
102+
$filesCollector = new \Magento\Setup\Module\I18n\FilesCollector();
103103

104-
$phraseCollector = new I18n\Parser\Adapter\Php\Tokenizer\PhraseCollector(
105-
new I18n\Parser\Adapter\Php\Tokenizer()
104+
$phraseCollector = new \Magento\Setup\Module\I18n\Parser\Adapter\Php\Tokenizer\PhraseCollector(
105+
new \Magento\Setup\Module\I18n\Parser\Adapter\Php\Tokenizer()
106106
);
107107
$adapters = [
108-
'php' => new I18n\Parser\Adapter\Php($phraseCollector),
109-
'js' => new I18n\Parser\Adapter\Js(),
110-
'xml' => new I18n\Parser\Adapter\Xml(),
111-
'html' => new I18n\Parser\Adapter\Html(),
108+
'php' => new \Magento\Setup\Module\I18n\Parser\Adapter\Php($phraseCollector),
109+
'js' => new \Magento\Setup\Module\I18n\Parser\Adapter\Js(),
110+
'xml' => new \Magento\Setup\Module\I18n\Parser\Adapter\Xml(),
111+
'html' => new \Magento\Setup\Module\I18n\Parser\Adapter\Html(),
112112
];
113113

114-
$parserContextual = new I18n\Parser\Contextual($filesCollector, new I18n\Factory(), new I18n\Context());
114+
$parserContextual = new \Magento\Setup\Module\I18n\Parser\Contextual(
115+
$filesCollector,
116+
new \Magento\Setup\Module\I18n\Factory(),
117+
new \Magento\Setup\Module\I18n\Context()
118+
);
115119
foreach ($adapters as $type => $adapter) {
116120
$parserContextual->addAdapter($type, $adapter);
117121
}

0 commit comments

Comments
 (0)