File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed
app/code/Magento/Customer Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 9
9
use \Magento \Framework \Api \AttributeValueFactory ;
10
10
11
11
/**
12
- * Class Customer
12
+ * Customer data model
13
+ *
13
14
* @SuppressWarnings(PHPMD.ExcessivePublicCount)
14
15
*/
15
16
class Customer extends \Magento \Framework \Api \AbstractExtensibleObject implements
@@ -39,7 +40,7 @@ public function __construct(
39
40
}
40
41
41
42
/**
42
- * { @inheritdoc}
43
+ * @inheritdoc
43
44
*/
44
45
protected function getCustomAttributesCodes ()
45
46
{
@@ -50,6 +51,8 @@ protected function getCustomAttributesCodes()
50
51
}
51
52
52
53
/**
54
+ * Get default billing address id
55
+ *
53
56
* @return string|null
54
57
*/
55
58
public function getDefaultBilling ()
@@ -489,7 +492,7 @@ public function setDisableAutoGroupChange($disableAutoGroupChange)
489
492
}
490
493
491
494
/**
492
- * { @inheritdoc}
495
+ * @inheritdoc
493
496
*
494
497
* @return \Magento\Customer\Api\Data\CustomerExtensionInterface|null
495
498
*/
@@ -499,7 +502,7 @@ public function getExtensionAttributes()
499
502
}
500
503
501
504
/**
502
- * { @inheritdoc}
505
+ * @inheritdoc
503
506
*
504
507
* @param \Magento\Customer\Api\Data\CustomerExtensionInterface $extensionAttributes
505
508
* @return $this
Original file line number Diff line number Diff line change 1
1
<?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
2
6
3
7
namespace Magento \Customer \Test \Unit \Model \Data ;
4
8
@@ -45,12 +49,15 @@ public function testGetGroupId()
45
49
* @dataProvider getCreatedInDataProvider
46
50
*
47
51
* @return void
48
- */
52
+ */
49
53
public function testGetCreatedIn ($ options , $ expectedResult )
50
54
{
51
- for ($ i = 0 ; $ i < count ($ options ); $ i ++) {
55
+ $ optionsCount = count ($ options );
56
+ $ expectedCount = count ($ expectedResult );
57
+
58
+ for ($ i = 0 ; $ i < $ optionsCount ; $ i ++) {
52
59
$ this ->model ->setCreatedIn ($ options [$ i ]);
53
- for ($ j = $ i ; $ j < count ( $ expectedResult ) ; $ j ++) {
60
+ for ($ j = $ i ; $ j < $ expectedCount ; $ j ++) {
54
61
$ this ->assertEquals ($ expectedResult [$ j ], $ this ->model ->getCreatedIn ());
55
62
break ;
56
63
}
You can’t perform that action at this time.
0 commit comments