Skip to content

Commit dbd8716

Browse files
committed
MAGETWO-56126: Login failed after new custom attribute was added
- fix static test
1 parent dde0638 commit dbd8716

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/code/Magento/Customer/Test/Unit/Model/CustomerAuthUpdateTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class CustomerAuthUpdateTest extends \PHPUnit_Framework_TestCase
1616
* @var CustomerAuthUpdate
1717
*/
1818
protected $model;
19+
1920
/**
2021
* @var \Magento\Customer\Model\CustomerRegistry|\PHPUnit_Framework_MockObject_MockObject
2122
*/
@@ -38,14 +39,13 @@ protected function setUp()
3839
{
3940
$this->objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
4041

41-
$className = '\Magento\Customer\Model\CustomerRegistry';
42-
$this->customerRegistry = $this->getMock($className, [], [], '', false);
43-
44-
$className = '\Magento\Customer\Model\ResourceModel\Customer';
45-
$this->customerResourceModel = $this->getMock($className, [], [], '', false);
42+
$this->customerRegistry =
43+
$this->getMock(\Magento\Customer\Model\CustomerRegistry::class, [], [], '', false);
44+
$this->customerResourceModel =
45+
$this->getMock(\Magento\Customer\Model\ResourceModel\Customer::class, [], [], '', false);
4646

4747
$this->model = $this->objectManager->getObject(
48-
'\Magento\Customer\Model\CustomerAuthUpdate',
48+
\Magento\Customer\Model\CustomerAuthUpdate::class,
4949
[
5050
'customerRegistry' => $this->customerRegistry,
5151
'customerResourceModel' => $this->customerResourceModel,

0 commit comments

Comments
 (0)