@@ -32,11 +32,6 @@ class GetCustomerTest extends GraphQlAbstract
32
32
*/
33
33
private $ customerAuthUpdate ;
34
34
35
- /**
36
- * @var AccountManagementInterface
37
- */
38
- private $ accountManagement ;
39
-
40
35
/**
41
36
* @var CustomerRepositoryInterface
42
37
*/
@@ -47,7 +42,6 @@ protected function setUp()
47
42
parent ::setUp ();
48
43
49
44
$ this ->customerTokenService = Bootstrap::getObjectManager ()->get (CustomerTokenServiceInterface::class);
50
- $ this ->accountManagement = Bootstrap::getObjectManager ()->get (AccountManagementInterface::class);
51
45
$ this ->customerRegistry = Bootstrap::getObjectManager ()->get (CustomerRegistry::class);
52
46
$ this ->customerAuthUpdate = Bootstrap::getObjectManager ()->get (CustomerAuthUpdate::class);
53
47
$ this ->customerRepository = Bootstrap::getObjectManager ()->get (CustomerRepositoryInterface::class);
@@ -139,11 +133,12 @@ public function testGetCustomerIfAccountIsLocked()
139
133
*/
140
134
public function testAccountIsNotConfirmed ()
141
135
{
142
- $ confirmation_required = $ this ->accountManagement ::ACCOUNT_CONFIRMATION_REQUIRED ;
143
136
$ customerEmail =
'[email protected] ' ;
144
137
$ currentPassword = 'password ' ;
145
138
$ headersMap = $ this ->getCustomerAuthHeaders ($ customerEmail , $ currentPassword );
146
- $ customer = $ this ->customerRepository ->getById (1 )->setConfirmation ($ confirmation_required );
139
+ $ customer = $ this ->customerRepository ->getById (1 )->setConfirmation (
140
+ AccountManagementInterface::ACCOUNT_CONFIRMATION_REQUIRED
141
+ );
147
142
$ this ->customerRepository ->save ($ customer );
148
143
$ query = <<<QUERY
149
144
query {
0 commit comments