Skip to content

Commit

Permalink
Merge pull request #464 from magento-troll/troll-kanban
Browse files Browse the repository at this point in the history
[Troll & Dragons] Bugfixes
  • Loading branch information
Ganin, Roman(rganin) committed Mar 19, 2016
2 parents be02d0d + 72cab4f commit 25f34d6
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions app/code/Magento/Sales/Model/OrderRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public function getList(\Magento\Framework\Api\SearchCriteria $searchCriteria)
$searchResult->addFieldToFilter($filter->getField(), [$condition => $filter->getValue()]);
}
}
$searchResult->setSearchCriteria($searchCriteria);
$searchResult->setCurPage($searchCriteria->getCurrentPage());
$searchResult->setPageSize($searchCriteria->getPageSize());
foreach ($searchResult->getItems() as $order) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public function testOrderList()
$filterBuilder
->setField('status')
->setValue('processing')
->setConditionType('eq')
->create(),
]
);
Expand All @@ -70,5 +71,7 @@ public function testOrderList()
$result = $this->_webApiCall($serviceInfo, $requestData);
$this->assertArrayHasKey('items', $result);
$this->assertCount(1, $result['items']);
$this->assertArrayHasKey('search_criteria', $result);
$this->assertEquals($searchData, $result['search_criteria']);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Messages extends Block
*
* @var string
*/
protected $closePopup = '.ui-dialog-titlebar-close';
protected $closePopup = '[data-role="closeBtn"]';

/**
* Close popup block.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<block name="storeStatsBlock" class="Magento\Backend\Test\Block\Dashboard\StoreStats" locator=".dashboard-store-stats" strategy="css selector" />
<block name="errorBlock" class="Magento\Backend\Test\Block\Page\Error" locator="[id='page:main-container']" strategy="css selector" />
<block name="accessDeniedBlock" class="Magento\Backend\Test\Block\Denied" locator="#anchor-content" strategy="css selector" />
<block name="systemMessageDialog" class="Magento\AdminNotification\Test\Block\System\Messages" locator='[role="dialog"].ui-popup-message' strategy="css selector" />
<block name="systemMessageDialog" class="Magento\AdminNotification\Test\Block\System\Messages" locator='.ui-popup-message .modal-inner-wrap' strategy="css selector" />
<block name="applicationVersion" class="Magento\Backend\Test\Block\Version" locator="body" strategy="css selector" />
</page>
</config>
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
<block name="messagesBlock" class="Magento\Backend\Test\Block\Messages" locator="#messages .messages" strategy="css selector" />
<block name="gridPageActions" class="Magento\CatalogRule\Test\Block\Adminhtml\Promo\GridPageActions" locator=".page-main-actions" strategy="css selector" />
<block name="catalogRuleGrid" class="Magento\CatalogRule\Test\Block\Adminhtml\Promo\Catalog" locator="#promo_catalog_grid" strategy="css selector" />
<block name="systemMessageDialog" class="Magento\AdminNotification\Test\Block\System\Messages" locator='[role="dialog"].ui-popup-message' strategy="css selector" />
<block name="systemMessageDialog" class="Magento\AdminNotification\Test\Block\System\Messages" locator='.ui-popup-message .modal-inner-wrap' strategy="css selector" />
</page>
</config>
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
<block name="promoQuoteGrid" class="Magento\SalesRule\Test\Block\Adminhtml\Promo\Grid" locator="#promo_quote_grid" strategy="css selector" />
<block name="messagesBlock" class="Magento\Backend\Test\Block\Messages" locator="#messages" strategy="css selector" />
<block name="gridPageActions" class="Magento\Backend\Test\Block\GridPageActions" locator=".page-main-actions" strategy="css selector" />
<block name="systemMessageDialog" class="Magento\AdminNotification\Test\Block\System\Messages" locator='[role="dialog"].ui-popup-message' strategy="css selector" />
<block name="systemMessageDialog" class="Magento\AdminNotification\Test\Block\System\Messages" locator='.ui-popup-message .modal-inner-wrap' strategy="css selector" />
</page>
</config>
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
<block name="pageActionsBlock" class="Magento\Backend\Test\Block\GridPageActions" locator=".page-main-actions" strategy="css selector" />
<block name="widgetGrid" class="Magento\Widget\Test\Block\Adminhtml\Widget\WidgetGrid" locator="#widgetInstanceGrid" strategy="css selector" />
<block name="messagesBlock" class="Magento\Backend\Test\Block\Messages" locator="#messages" strategy="css selector" />
<block name="systemMessageDialog" class="Magento\AdminNotification\Test\Block\System\Messages" locator='[role="dialog"].ui-popup-message' strategy="css selector" />
<block name="systemMessageDialog" class="Magento\AdminNotification\Test\Block\System\Messages" locator='.ui-popup-message .modal-inner-wrap' strategy="css selector" />
</page>
</config>
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ public function setArguments($arguments)
protected function createObject($type, $args)
{
switch (count($args)) {
case 0:
return new $type();
case 1:
return new $type($args[0]);
case 2:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ protected function getCacheTags()
$tags[] = self::CACHE_GROUP;

if ($this instanceof IdentityInterface) {
$tags += $this->getIdentities();
$tags = array_merge($tags, $this->getIdentities());
}
return $tags;
}
Expand Down

0 comments on commit 25f34d6

Please sign in to comment.