Skip to content

Commit 9fb1287

Browse files
committed
MAGETWO-57580: [Backport] - Csrf delete the customer addresses for 2.0.x
- code cleanup for the unit test to remove usage of context
1 parent da06bd3 commit 9fb1287

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

app/code/Magento/Customer/Test/Unit/Controller/Address/DeleteTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ class DeleteTest extends \PHPUnit_Framework_TestCase
1616
/** @var Delete */
1717
protected $model;
1818

19-
/** @var \Magento\Framework\App\Action\Context|\PHPUnit_Framework_MockObject_MockObject */
20-
protected $context;
21-
2219
/** @var \Magento\Customer\Model\Session|\PHPUnit_Framework_MockObject_MockObject */
2320
protected $sessionMock;
2421

@@ -51,9 +48,6 @@ protected function setUp()
5148
$this->validatorMock = $this->getMockBuilder(\Magento\Framework\Data\Form\FormKey\Validator::class)
5249
->disableOriginalConstructor()
5350
->getMock();
54-
$formFactoryMock = $this->getMockBuilder(\Magento\Customer\Model\Metadata\FormFactory::class)
55-
->disableOriginalConstructor()
56-
->getMock();
5751
$this->addressRepositoryMock = $this->getMockBuilder(\Magento\Customer\Api\AddressRepositoryInterface::class)
5852
->getMockForAbstractClass();
5953
$this->request = $this->getMockBuilder(\Magento\Framework\App\RequestInterface::class)
@@ -81,7 +75,6 @@ protected function setUp()
8175
'messageManager' => $this->messageManager,
8276
'customerSession' => $this->sessionMock,
8377
'formKeyValidator' => $this->validatorMock,
84-
'formFactory' => $formFactoryMock,
8578
'addressRepository' => $this->addressRepositoryMock
8679
]
8780
);

0 commit comments

Comments
 (0)