Definition at line 8 of file InlineTest.php.
◆ processResponseBodyDataProvider()
processResponseBodyDataProvider |
( |
| ) |
|
- Returns
- array
Definition at line 114 of file InlineTest.php.
120 \
Magento\Framework\View\DesignInterface::class
121 )->getDesignTheme()->getPackageCode();
122 $expectedText = str_replace(
'{{design_package}}', $package, $expectedText);
124 'plain text' => [
'text with no translations and tags',
'text with no translations and tags'],
125 'html string' => [$originalText, $expectedText],
126 'html array' => [[$originalText], [$expectedText]]
defined('TESTS_BP')||define('TESTS_BP' __DIR__
static getObjectManager()
◆ setUp()
Definition at line 36 of file InlineTest.php.
39 \
Magento\Framework\Translate\Inline::class
46 \
Magento\Store\Model\StoreManagerInterface::class
50 'dev/translate_inline/active' 53 \
Magento\Framework\
App\Config\MutableScopeConfigInterface::class
55 'dev/translate_inline/active',
57 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE,
static getObjectManager()
◆ setUpBeforeClass()
static setUpBeforeClass |
( |
| ) |
|
|
static |
Definition at line 25 of file InlineTest.php.
28 ->setAreaCode(
'frontend');
30 \
Magento\Framework\View\DesignInterface::class
static getObjectManager()
◆ testIsAllowed()
Definition at line 62 of file InlineTest.php.
64 $this->assertTrue($this->_model->isAllowed());
65 $this->assertTrue($this->_model->isAllowed($this->_storeId));
67 $this->_model->isAllowed(
69 \
Magento\Store\Model\StoreManagerInterface::class
75 $this->state->suspend();
76 $this->assertFalse($this->_model->isAllowed());
77 $this->assertFalse($this->_model->isAllowed($this->_storeId));
79 $this->_model->isAllowed(
81 \
Magento\Store\Model\StoreManagerInterface::class
static getObjectManager()
◆ testProcessResponseBody()
testProcessResponseBody |
( |
|
$originalText, |
|
|
|
$expectedText |
|
) |
| |
- Parameters
-
string | $originalText | |
string | $expectedText | @dataProvider processResponseBodyDataProvider |
Definition at line 94 of file InlineTest.php.
96 $actualText = $originalText;
97 $this->_model->processResponseBody($actualText,
false);
98 $this->markTestIncomplete(
'Bug MAGE-2494');
100 $expected = new \DOMDocument();
101 $expected->preserveWhiteSpace =
false;
102 $expected->loadHTML($expectedText);
104 $actual = new \DOMDocument();
105 $actual->preserveWhiteSpace =
false;
106 $actual->loadHTML($actualText);
108 $this->assertEquals($expected, $actual);
◆ $_model
◆ $_storeId
◆ $state
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/integration/testsuite/Magento/Framework/Translate/InlineTest.php