|
1 | 1 | <?php
|
2 | 2 |
|
| 3 | +declare(strict_types=1); |
| 4 | + |
3 | 5 | namespace PHPSTORM_META {
|
| 6 | + |
4 | 7 | override(\Magento\Framework\ObjectManagerInterface::get(0), map(['' => '@']));
|
5 | 8 | override(\Magento\Framework\ObjectManagerInterface::create(0), map(['' => '@']));
|
| 9 | + |
| 10 | + override(\Magento\Framework\View\LayoutInterface::createBlock(0), map(['' => '@'])); |
| 11 | + override(\Magento\Framework\View\TemplateEngine\Php::helper(0), map(['' => '@'])); |
| 12 | + |
| 13 | + override( |
| 14 | + \Magento\Framework\Controller\ResultFactory::create(0), |
| 15 | + map( |
| 16 | + [ |
| 17 | + \Magento\Framework\Controller\ResultFactory::TYPE_FORWARD => \Magento\Framework\Controller\Result\Forward::class, |
| 18 | + \Magento\Framework\Controller\ResultFactory::TYPE_JSON => \Magento\Framework\Controller\Result\Json::class, |
| 19 | + \Magento\Framework\Controller\ResultFactory::TYPE_LAYOUT => \Magento\Framework\View\Result\Layout::class, |
| 20 | + \Magento\Framework\Controller\ResultFactory::TYPE_PAGE => \Magento\Framework\View\Result\Page::class, |
| 21 | + \Magento\Framework\Controller\ResultFactory::TYPE_RAW => \Magento\Framework\Controller\Result\Raw::class, |
| 22 | + \Magento\Framework\Controller\ResultFactory::TYPE_REDIRECT => \Magento\Framework\Controller\Result\Redirect::class, |
| 23 | + ] |
| 24 | + ) |
| 25 | + ); |
| 26 | + |
| 27 | + expectedArguments( |
| 28 | + \Magento\Framework\Controller\ResultFactory::create(), |
| 29 | + 0, |
| 30 | + \Magento\Framework\Controller\ResultFactory::TYPE_FORWARD, |
| 31 | + \Magento\Framework\Controller\ResultFactory::TYPE_JSON, |
| 32 | + \Magento\Framework\Controller\ResultFactory::TYPE_LAYOUT, |
| 33 | + \Magento\Framework\Controller\ResultFactory::TYPE_PAGE, |
| 34 | + \Magento\Framework\Controller\ResultFactory::TYPE_RAW, |
| 35 | + \Magento\Framework\Controller\ResultFactory::TYPE_REDIRECT |
| 36 | + ); |
| 37 | + |
| 38 | + registerArgumentsSet( |
| 39 | + 'scope_types', |
| 40 | + \Magento\Framework\App\Config\ScopeConfigInterface::SCOPE_TYPE_DEFAULT, |
| 41 | + \Magento\Store\Model\ScopeInterface::SCOPE_STORE, |
| 42 | + \Magento\Store\Model\ScopeInterface::SCOPE_WEBSITE |
| 43 | + ); |
| 44 | + expectedArguments( |
| 45 | + \Magento\Framework\App\Config\ScopeConfigInterface::getValue(), |
| 46 | + 1, |
| 47 | + argumentsSet('scope_types') |
| 48 | + ); |
| 49 | + expectedArguments( |
| 50 | + \Magento\Framework\App\Config\ScopeConfigInterface::isSetFlag(), |
| 51 | + 1, |
| 52 | + argumentsSet('scope_types') |
| 53 | + ); |
| 54 | + expectedArguments( |
| 55 | + \Magento\Framework\App\Config\MutableScopeConfigInterface::setValue(), |
| 56 | + 2, |
| 57 | + argumentsSet('scope_types') |
| 58 | + ); |
| 59 | + |
| 60 | + registerArgumentsSet( |
| 61 | + 'condition_types', |
| 62 | + 'eq', |
| 63 | + 'in', |
| 64 | + 'is', |
| 65 | + 'to', |
| 66 | + 'finset', |
| 67 | + 'from', |
| 68 | + 'gt', |
| 69 | + 'gteq', |
| 70 | + 'like', |
| 71 | + 'lt', |
| 72 | + 'lteq', |
| 73 | + 'moreq', |
| 74 | + 'neq', |
| 75 | + 'nin', |
| 76 | + 'notnull', |
| 77 | + 'null' |
| 78 | + ); |
| 79 | + expectedArguments(\Magento\Framework\Api\SearchCriteriaBuilder::addFilter(), 2, argumentsSet('condition_types')); |
| 80 | + expectedArguments(\Magento\Framework\Api\FilterBuilder::setConditionType(), 0, argumentsSet('condition_types')); |
| 81 | + |
| 82 | + expectedArguments( |
| 83 | + \Magento\Framework\Api\SearchCriteriaBuilder::addSortOrder(), |
| 84 | + 0, |
| 85 | + \Magento\Framework\Api\SortOrder::SORT_ASC, |
| 86 | + \Magento\Framework\Api\SortOrder::SORT_DESC |
| 87 | + ); |
| 88 | + |
| 89 | + registerArgumentsSet( |
| 90 | + 'field_types', |
| 91 | + 'button', |
| 92 | + 'checkbox', |
| 93 | + 'checkboxes', |
| 94 | + 'column', |
| 95 | + 'date', |
| 96 | + 'editablemultiselect', |
| 97 | + 'editor', |
| 98 | + 'fieldset', |
| 99 | + 'file', |
| 100 | + 'gallery', |
| 101 | + 'hidden', |
| 102 | + 'image', |
| 103 | + 'imagefile', |
| 104 | + 'label', |
| 105 | + 'link', |
| 106 | + 'multiline', |
| 107 | + 'multiselect', |
| 108 | + 'note', |
| 109 | + 'obscure', |
| 110 | + 'password', |
| 111 | + 'radio', |
| 112 | + 'radios', |
| 113 | + 'reset', |
| 114 | + 'select', |
| 115 | + 'submit', |
| 116 | + 'text', |
| 117 | + 'textarea', |
| 118 | + 'time' |
| 119 | + ); |
| 120 | + expectedArguments(\Magento\Framework\Data\Form\AbstractForm::addField(), 1, argumentsSet('field_types')); |
| 121 | + expectedArguments(\Magento\Framework\Data\Form\Element\Fieldset::addField(), 1, argumentsSet('field_types')); |
| 122 | + |
6 | 123 | }
|
0 commit comments