@@ -16,6 +16,7 @@ class CustomerAuthUpdateTest extends \PHPUnit_Framework_TestCase
16
16
* @var CustomerAuthUpdate
17
17
*/
18
18
protected $ model ;
19
+
19
20
/**
20
21
* @var \Magento\Customer\Model\CustomerRegistry|\PHPUnit_Framework_MockObject_MockObject
21
22
*/
@@ -38,14 +39,13 @@ protected function setUp()
38
39
{
39
40
$ this ->objectManager = new \Magento \Framework \TestFramework \Unit \Helper \ObjectManager ($ this );
40
41
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 );
46
46
47
47
$ this ->model = $ this ->objectManager ->getObject (
48
- ' \Magento\Customer\Model\CustomerAuthUpdate ' ,
48
+ \Magento \Customer \Model \CustomerAuthUpdate::class ,
49
49
[
50
50
'customerRegistry ' => $ this ->customerRegistry ,
51
51
'customerResourceModel ' => $ this ->customerResourceModel ,
0 commit comments