-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.phpstorm.meta.php
75 lines (64 loc) · 3.38 KB
/
.phpstorm.meta.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
namespace PHPSTORM_META {
override(\Magento\Framework\ObjectManagerInterface::create(0), map());
override(\Magento\Framework\ObjectManagerInterface::get(0), map());
override(\Magento\Framework\Controller\ResultFactory::create(0),
map([
\Magento\Framework\Controller\ResultFactory::TYPE_FORWARD => \Magento\Framework\Controller\Result\Forward::class,
\Magento\Framework\Controller\ResultFactory::TYPE_JSON => \Magento\Framework\Controller\Result\Json::class,
\Magento\Framework\Controller\ResultFactory::TYPE_LAYOUT => \Magento\Framework\View\Result\Layout::class,
\Magento\Framework\Controller\ResultFactory::TYPE_PAGE => \Magento\Framework\View\Result\Page::class,
\Magento\Framework\Controller\ResultFactory::TYPE_RAW => \Magento\Framework\Controller\Result\Raw::class,
\Magento\Framework\Controller\ResultFactory::TYPE_REDIRECT => \Magento\Framework\Controller\Result\Redirect::class,
])
);
expectedArguments(\Magento\Framework\Controller\ResultFactory::create(), 0,
\Magento\Framework\Controller\ResultFactory::TYPE_FORWARD,
\Magento\Framework\Controller\ResultFactory::TYPE_JSON,
\Magento\Framework\Controller\ResultFactory::TYPE_LAYOUT,
\Magento\Framework\Controller\ResultFactory::TYPE_PAGE,
\Magento\Framework\Controller\ResultFactory::TYPE_RAW,
\Magento\Framework\Controller\ResultFactory::TYPE_REDIRECT
);
registerArgumentsSet('condition_types',
'eq', 'in', 'is', 'to', 'finset',
'from', 'gt', 'gteq', 'like', 'lt',
'lteq', 'moreq', 'neq', 'nin', 'notnull', 'null'
);
expectedArguments(\Magento\Framework\Api\SearchCriteriaBuilder::addFilter(), 2, argumentsSet('condition_types'));
expectedArguments(\Magento\Framework\Api\FilterBuilder::setConditionType(), 0, argumentsSet('condition_types'));
expectedArguments(\Magento\Framework\Api\SearchCriteriaBuilder::addSortOrder(), 0,
\Magento\Framework\Api\SortOrder::SORT_ASC,
\Magento\Framework\Api\SortOrder::SORT_DESC
);
registerArgumentsSet('scope_types',
\Magento\Framework\App\Config\ScopeConfigInterface::SCOPE_TYPE_DEFAULT,
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
\Magento\Store\Model\ScopeInterface::SCOPE_WEBSITE
);
expectedArguments(
\Magento\Framework\App\Config\ScopeConfigInterface::getValue(),
1,
argumentsSet('scope_types')
);
expectedArguments(
\Magento\Framework\App\Config\ScopeConfigInterface::isSetFlag(),
1,
argumentsSet('scope_types')
);
expectedArguments(
\Magento\Framework\App\Config\MutableScopeConfigInterface::setValue(),
2,
argumentsSet('scope_types')
);
registerArgumentsSet('field_types',
'button', 'checkbox', 'checkboxes', 'column', 'date',
'editablemultiselect', 'editor', 'fieldset', 'file', 'gallery',
'hidden', 'image', 'imagefile', 'label', 'link',
'multiline', 'multiselect', 'note', 'obscure', 'password',
'radio', 'radios', 'reset', 'select', 'submit',
'text', 'textarea', 'time'
);
expectedArguments(\Magento\Framework\Data\Form\AbstractForm::addField(), 1, argumentsSet('field_types'));
expectedArguments(\Magento\Framework\Data\Form\Element\Fieldset::addField(), 1, argumentsSet('field_types'));
}