File tree Expand file tree Collapse file tree 9 files changed +12
-6
lines changed
app/code/Magento/Sales/Model
api-functional/testsuite/Magento/Sales/Service/V1
functional/tests/app/Magento
AdminNotification/Test/Block/System
Backend/Test/Page/Adminhtml
CatalogRule/Test/Page/Adminhtml
SalesRule/Test/Page/Adminhtml
Widget/Test/Page/Adminhtml
lib/internal/Magento/Framework Expand file tree Collapse file tree 9 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ public function getList(\Magento\Framework\Api\SearchCriteria $searchCriteria)
105
105
$ searchResult ->addFieldToFilter ($ filter ->getField (), [$ condition => $ filter ->getValue ()]);
106
106
}
107
107
}
108
+ $ searchResult ->setSearchCriteria ($ searchCriteria );
108
109
$ searchResult ->setCurPage ($ searchCriteria ->getCurrentPage ());
109
110
$ searchResult ->setPageSize ($ searchCriteria ->getPageSize ());
110
111
foreach ($ searchResult ->getItems () as $ order ) {
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ public function testOrderList()
49
49
$ filterBuilder
50
50
->setField ('status ' )
51
51
->setValue ('processing ' )
52
+ ->setConditionType ('eq ' )
52
53
->create (),
53
54
]
54
55
);
@@ -70,5 +71,7 @@ public function testOrderList()
70
71
$ result = $ this ->_webApiCall ($ serviceInfo , $ requestData );
71
72
$ this ->assertArrayHasKey ('items ' , $ result );
72
73
$ this ->assertCount (1 , $ result ['items ' ]);
74
+ $ this ->assertArrayHasKey ('search_criteria ' , $ result );
75
+ $ this ->assertEquals ($ searchData , $ result ['search_criteria ' ]);
73
76
}
74
77
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class Messages extends Block
18
18
*
19
19
* @var string
20
20
*/
21
- protected $ closePopup = '.ui-dialog-titlebar-close ' ;
21
+ protected $ closePopup = '[data-role="closeBtn"] ' ;
22
22
23
23
/**
24
24
* Close popup block.
Original file line number Diff line number Diff line change 14
14
<block name =" storeStatsBlock" class =" Magento\Backend\Test\Block\Dashboard\StoreStats" locator =" .dashboard-store-stats" strategy =" css selector" />
15
15
<block name =" errorBlock" class =" Magento\Backend\Test\Block\Page\Error" locator =" [id='page:main-container']" strategy =" css selector" />
16
16
<block name =" accessDeniedBlock" class =" Magento\Backend\Test\Block\Denied" locator =" #anchor-content" strategy =" css selector" />
17
- <block name =" systemMessageDialog" class =" Magento\AdminNotification\Test\Block\System\Messages" locator =' [role="dialog"] .ui-popup-message' strategy =" css selector" />
17
+ <block name =" systemMessageDialog" class =" Magento\AdminNotification\Test\Block\System\Messages" locator =' .ui-popup-message .modal-inner-wrap ' strategy =" css selector" />
18
18
<block name =" applicationVersion" class =" Magento\Backend\Test\Block\Version" locator =" body" strategy =" css selector" />
19
19
</page >
20
20
</config >
Original file line number Diff line number Diff line change 10
10
<block name =" messagesBlock" class =" Magento\Backend\Test\Block\Messages" locator =" #messages .messages" strategy =" css selector" />
11
11
<block name =" gridPageActions" class =" Magento\CatalogRule\Test\Block\Adminhtml\Promo\GridPageActions" locator =" .page-main-actions" strategy =" css selector" />
12
12
<block name =" catalogRuleGrid" class =" Magento\CatalogRule\Test\Block\Adminhtml\Promo\Catalog" locator =" #promo_catalog_grid" strategy =" css selector" />
13
- <block name =" systemMessageDialog" class =" Magento\AdminNotification\Test\Block\System\Messages" locator =' [role="dialog"] .ui-popup-message' strategy =" css selector" />
13
+ <block name =" systemMessageDialog" class =" Magento\AdminNotification\Test\Block\System\Messages" locator =' .ui-popup-message .modal-inner-wrap ' strategy =" css selector" />
14
14
</page >
15
15
</config >
Original file line number Diff line number Diff line change 10
10
<block name =" promoQuoteGrid" class =" Magento\SalesRule\Test\Block\Adminhtml\Promo\Grid" locator =" #promo_quote_grid" strategy =" css selector" />
11
11
<block name =" messagesBlock" class =" Magento\Backend\Test\Block\Messages" locator =" #messages" strategy =" css selector" />
12
12
<block name =" gridPageActions" class =" Magento\Backend\Test\Block\GridPageActions" locator =" .page-main-actions" strategy =" css selector" />
13
- <block name =" systemMessageDialog" class =" Magento\AdminNotification\Test\Block\System\Messages" locator =' [role="dialog"] .ui-popup-message' strategy =" css selector" />
13
+ <block name =" systemMessageDialog" class =" Magento\AdminNotification\Test\Block\System\Messages" locator =' .ui-popup-message .modal-inner-wrap ' strategy =" css selector" />
14
14
</page >
15
15
</config >
Original file line number Diff line number Diff line change 10
10
<block name =" pageActionsBlock" class =" Magento\Backend\Test\Block\GridPageActions" locator =" .page-main-actions" strategy =" css selector" />
11
11
<block name =" widgetGrid" class =" Magento\Widget\Test\Block\Adminhtml\Widget\WidgetGrid" locator =" #widgetInstanceGrid" strategy =" css selector" />
12
12
<block name =" messagesBlock" class =" Magento\Backend\Test\Block\Messages" locator =" #messages" strategy =" css selector" />
13
- <block name =" systemMessageDialog" class =" Magento\AdminNotification\Test\Block\System\Messages" locator =' [role="dialog"] .ui-popup-message' strategy =" css selector" />
13
+ <block name =" systemMessageDialog" class =" Magento\AdminNotification\Test\Block\System\Messages" locator =' .ui-popup-message .modal-inner-wrap ' strategy =" css selector" />
14
14
</page >
15
15
</config >
Original file line number Diff line number Diff line change @@ -93,6 +93,8 @@ public function setArguments($arguments)
93
93
protected function createObject ($ type , $ args )
94
94
{
95
95
switch (count ($ args )) {
96
+ case 0 :
97
+ return new $ type ();
96
98
case 1 :
97
99
return new $ type ($ args [0 ]);
98
100
case 2 :
Original file line number Diff line number Diff line change @@ -996,7 +996,7 @@ protected function getCacheTags()
996
996
$ tags [] = self ::CACHE_GROUP ;
997
997
998
998
if ($ this instanceof IdentityInterface) {
999
- $ tags += $ this ->getIdentities ();
999
+ $ tags = array_merge ( $ tags , $ this ->getIdentities () );
1000
1000
}
1001
1001
return $ tags ;
1002
1002
}
You can’t perform that action at this time.
0 commit comments