Skip to content

Commit

Permalink
MAGETWO-35269: [Folks] Unit and Integration tests coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Idolov committed Jul 10, 2015
1 parent 451da36 commit 139997b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions app/code/Magento/Checkout/Test/Unit/Block/Cart/SidebarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ public function testGetConfig()
$checkoutUrl = 'http://url.com/checkout';
$updateItemQtyUrl = 'http://url.com/updateItemQty';
$removeItemUrl = 'http://url.com/removeItem';
$customerRegisterUrl = 'http://url.com/register';
$customerForgotPasswordUrl = 'http://url.com/forgot';
$baseUrl = 'http://url.com/';
$imageTemplate = 'Magento_Catalog/product/image_with_borders';

Expand All @@ -127,21 +125,17 @@ public function testGetConfig()
'updateItemQtyUrl' => $updateItemQtyUrl,
'removeItemUrl' => $removeItemUrl,
'imageTemplate' => $imageTemplate,
'customerRegisterUrl' => $customerRegisterUrl,
'customerForgotPasswordUrl' => $customerForgotPasswordUrl,
'baseUrl' => $baseUrl
];

$valueMap = [
['checkout/cart', [], $shoppingCartUrl],
['checkout', [], $checkoutUrl],
['checkout/sidebar/updateItemQty', [], $updateItemQtyUrl],
['checkout/sidebar/removeItem', [], $removeItemUrl],
['customer/account/create', [], $customerRegisterUrl],
['customer/account/forgotpassword', [], $customerForgotPasswordUrl]
['checkout/sidebar/removeItem', [], $removeItemUrl]
];

$this->urlBuilderMock->expects($this->exactly(6))
$this->urlBuilderMock->expects($this->exactly(4))
->method('getUrl')
->willReturnMap($valueMap);
$this->storeManagerMock->expects($this->once())->method('getStore')->willReturn($storeMock);
Expand Down

0 comments on commit 139997b

Please sign in to comment.