Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/dev/1.10' into 1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrebenchuk committed Nov 2, 2016
2 parents b4dbac6 + 8f2dcf9 commit f7093a4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ datagrid:
createdAt: { data_name: c.createdAt }
updatedAt: { data_name: c.updatedAt }
countryName: { data_name: country.name }
regionName: { data_name: region.name}
lifetime: { data_name: c.lifetime }
regionName: { data_name: address.regionName }
default:
lastName: ASC
firstName: ASC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,17 @@ public function testView()
);
}

/**
* @return array
*/
public function gridProvider()
{
return [
'Magento cart grid' => [
[
'gridParameters' => [
'gridName' => 'magento-cart-grid'
'gridName' => 'magento-cart-grid',
'magento-cart-grid[_sort_by][originId]' => 'ASC',
],
'gridFilters' => [],
'asserts' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function testGrid($requestData)
}

/**
* @depend1s testGrid
* @depends testGrid
*/
public function testCreate()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,6 @@ public function testView()
$this->assertContains($this->subscriber->getStatus()->getName(), $result->getContent());
}

/**
* @param array $requestData
*
* @dataProvider gridProvider
*/
public function testGrid($requestData)
{
parent::testGrid($requestData);
}

/**
* @return array
*/
Expand All @@ -111,7 +101,10 @@ public function gridProvider()
return [
'default' => [
[
'gridParameters' => ['gridName' => 'magento-newsletter-subscriber-grid'],
'gridParameters' => [
'gridName' => 'magento-newsletter-subscriber-grid',
'magento-newsletter-subscriber-grid[_sort_by][customerName]' => 'DESC',
],
'gridFilters' => [],
'assert' => [
'channelName' => 'Magento channel',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,17 @@ public function testView()
$this->assertContains('Shopping Cart', $result->getContent());
}

/**
* @return array
*/
public function gridProvider()
{
return [
'Magento order grid' => [
[
'gridParameters' => [
'gridName' => 'magento-order-grid'
'gridName' => 'magento-order-grid',
'magento-order-grid[_sort_by][incrementId]' => 'ASC',
],
'gridFilters' => [],
'asserts' => [
Expand Down

0 comments on commit f7093a4

Please sign in to comment.