Skip to content

Commit 62c6981

Browse files
committed
Merge branch 'mutation-CreateCustomer' of github.com:magento/graphql-ce into 2.3-develop-graphql-prs
# Conflicts: # dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/CreateCustomerTest.php
2 parents 98df873 + b904c63 commit 62c6981

10 files changed

+15
-15
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/ChangeCustomerPasswordTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ChangeCustomerPasswordTest extends GraphQlAbstract
4848
*/
4949
private $customerRepository;
5050

51-
protected function setUp()
51+
protected function setUp(): void
5252
{
5353
$this->customerTokenService = Bootstrap::getObjectManager()->get(CustomerTokenServiceInterface::class);
5454
$this->accountManagement = Bootstrap::getObjectManager()->get(AccountManagementInterface::class);

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/CreateCustomerAddressTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class CreateCustomerAddressTest extends GraphQlAbstract
2929
*/
3030
private $addressRepository;
3131

32-
protected function setUp()
32+
protected function setUp(): void
3333
{
3434
parent::setUp();
3535

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/CreateCustomerTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Magento\TestFramework\TestCase\GraphQlAbstract;
1414

1515
/**
16-
* Test for create customer functionallity
16+
* Test for create customer functionality
1717
*/
1818
class CreateCustomerTest extends GraphQlAbstract
1919
{
@@ -27,7 +27,7 @@ class CreateCustomerTest extends GraphQlAbstract
2727
*/
2828
private $customerRepository;
2929

30-
protected function setUp()
30+
protected function setUp(): void
3131
{
3232
parent::setUp();
3333

@@ -114,7 +114,7 @@ public function testCreateCustomerAccountWithoutPassword()
114114

115115
/**
116116
* @expectedException \Exception
117-
* @expectedExceptionMessage "input" value should be specified
117+
* @expectedExceptionMessage Field CustomerInput.email of required type String! was not provided
118118
*/
119119
public function testCreateCustomerIfInputDataIsEmpty()
120120
{
@@ -140,7 +140,7 @@ public function testCreateCustomerIfInputDataIsEmpty()
140140

141141
/**
142142
* @expectedException \Exception
143-
* @expectedExceptionMessage Required parameters are missing: Email
143+
* @expectedExceptionMessage Field CustomerInput.email of required type String! was not provided
144144
*/
145145
public function testCreateCustomerIfEmailMissed()
146146
{
@@ -341,7 +341,7 @@ public function testCreateCustomerIfCustomerWithProvidedEmailAlreadyExists()
341341
$this->graphQlMutation($query);
342342
}
343343

344-
public function tearDown()
344+
public function tearDown(): void
345345
{
346346
$newEmail = 'new_customer@example.com';
347347
try {

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/DeleteCustomerAddressTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class DeleteCustomerAddressTest extends GraphQlAbstract
3939
*/
4040
private $lockCustomer;
4141

42-
protected function setUp()
42+
protected function setUp(): void
4343
{
4444
parent::setUp();
4545

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/GetAddressesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class GetAddressesTest extends GraphQlAbstract
3131
*/
3232
private $lockCustomer;
3333

34-
protected function setUp()
34+
protected function setUp(): void
3535
{
3636
parent::setUp();
3737

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/GetCustomerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class GetCustomerTest extends GraphQlAbstract
3636
*/
3737
private $customerRepository;
3838

39-
protected function setUp()
39+
protected function setUp(): void
4040
{
4141
parent::setUp();
4242

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/SubscriptionStatusTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class SubscriptionStatusTest extends GraphQlAbstract
2929
*/
3030
private $subscriberFactory;
3131

32-
protected function setUp()
32+
protected function setUp(): void
3333
{
3434
parent::setUp();
3535

@@ -162,7 +162,7 @@ private function getHeaderMap(string $email, string $password): array
162162
return ['Authorization' => 'Bearer ' . $customerToken];
163163
}
164164

165-
protected function tearDown()
165+
protected function tearDown(): void
166166
{
167167
parent::tearDown();
168168

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/UpdateCustomerAddressTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class UpdateCustomerAddressTest extends GraphQlAbstract
4040
*/
4141
private $lockCustomer;
4242

43-
protected function setUp()
43+
protected function setUp(): void
4444
{
4545
parent::setUp();
4646

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/UpdateCustomerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class UpdateCustomerTest extends GraphQlAbstract
3333
*/
3434
private $lockCustomer;
3535

36-
protected function setUp()
36+
protected function setUp(): void
3737
{
3838
parent::setUp();
3939

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/AddSimpleProductToCartTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class AddSimpleProductToCartTest extends GraphQlAbstract
2929
*/
3030
private $getMaskedQuoteIdByReservedOrderId;
3131

32-
protected function setUp()
32+
protected function setUp(): void
3333
{
3434
$objectManager = Bootstrap::getObjectManager();
3535
$this->customerTokenService = $objectManager->get(CustomerTokenServiceInterface::class);

0 commit comments

Comments
 (0)