This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed
app/code/Magento/Customer Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,9 @@ class Edit extends \Magento\Directory\Block\Data
47
47
* @var \Magento\Framework\Api\DataObjectHelper
48
48
*/
49
49
protected $ dataObjectHelper ;
50
+
50
51
/**
51
- * @var AttributeChecker|null
52
+ * @var AttributeChecker
52
53
*/
53
54
private $ attributeChecker ;
54
55
@@ -67,8 +68,7 @@ class Edit extends \Magento\Directory\Block\Data
67
68
* @param \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer
68
69
* @param \Magento\Framework\Api\DataObjectHelper $dataObjectHelper
69
70
* @param array $data
70
- *
71
- * @param AttributeChecker|null $attributeChecker
71
+ * @param AttributeChecker $attributeChecker
72
72
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
73
73
*/
74
74
public function __construct (
Original file line number Diff line number Diff line change 12
12
use Magento \Customer \Model \AttributeChecker ;
13
13
use Magento \Customer \Model \Attribute ;
14
14
use Magento \Customer \Model \Metadata \AttributeResolver ;
15
- use Magento \Framework \App \Helper \Context ;
16
15
17
16
class AttributeCheckerTest extends \PHPUnit \Framework \TestCase
18
17
{
19
18
/** @var AttributeChecker|\PHPUnit_Framework_MockObject_MockObject */
20
19
private $ model ;
21
20
22
- /** @var Context */
23
- private $ context ;
24
-
25
21
/** @var AttributeResolver|\PHPUnit_Framework_MockObject_MockObject */
26
22
private $ attributeResolver ;
27
23
@@ -30,16 +26,12 @@ class AttributeCheckerTest extends \PHPUnit\Framework\TestCase
30
26
31
27
protected function setUp ()
32
28
{
33
- $ this ->context = $ this ->getMockBuilder (Context::class)
34
- ->disableOriginalConstructor ()
35
- ->getMock ();
36
29
$ this ->addressMetadataService = $ this ->getMockForAbstractClass (AddressMetadataInterface::class);
37
30
$ this ->attributeResolver = $ this ->getMockBuilder (AttributeResolver::class)
38
31
->disableOriginalConstructor ()
39
32
->getMock ();
40
33
41
34
$ this ->model = new AttributeChecker (
42
- $ this ->context ,
43
35
$ this ->addressMetadataService ,
44
36
$ this ->attributeResolver
45
37
);
You can’t perform that action at this time.
0 commit comments