Definition at line 9 of file AjaxTest.php.
◆ indexActionDataProvider()
indexActionDataProvider |
( |
| ) |
|
Definition at line 42 of file AjaxTest.php.
48 'original' =>
'phrase1',
49 'custom' =>
'translation1' 52 '{"phrase1":"translation1"}' 57 'original' =>
'phrase2',
58 'custom' =>
'translation2' 61 '{"phrase1":"translation1","phrase2":"translation2"}'
◆ setUp()
Definition at line 11 of file AjaxTest.php.
15 \
Magento\Store\Model\StoreManagerInterface::class
19 'dev/translate_inline/active' 22 \
Magento\Framework\
App\Config\MutableScopeConfigInterface::class
24 'dev/translate_inline/active',
26 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE,
static getObjectManager()
◆ testIndexAction()
testIndexAction |
( |
|
$postData, |
|
|
|
$expected |
|
) |
| |
@dataProvider indexActionDataProvider
Definition at line 35 of file AjaxTest.php.
38 $this->dispatch(
'translation/ajax/index');
39 $this->assertEquals($expected, $this->
getResponse()->getBody());
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/integration/testsuite/Magento/Translation/Controller/AjaxTest.php