diff --git a/app/code/Magento/CustomerGraphQl/Model/Resolver/Customer/CustomerDataProvider.php b/app/code/Magento/CustomerGraphQl/Model/Resolver/Customer/CustomerDataProvider.php index 17f40575ae3eb..39b23d1b23b24 100644 --- a/app/code/Magento/CustomerGraphQl/Model/Resolver/Customer/CustomerDataProvider.php +++ b/app/code/Magento/CustomerGraphQl/Model/Resolver/Customer/CustomerDataProvider.php @@ -47,9 +47,13 @@ class CustomerDataProvider protected $encryptor; /** + * CustomerDataProvider constructor. + * * @param CustomerRepositoryInterface $customerRepository * @param ServiceOutputProcessor $serviceOutputProcessor * @param SerializerInterface $jsonSerializer + * @param CustomerRegistry $customerRegistry + * @param Encryptor $encryptor */ public function __construct( CustomerRepositoryInterface $customerRepository, diff --git a/app/code/Magento/CustomerGraphQl/Model/Resolver/Customer/CustomerDataUpdater.php b/app/code/Magento/CustomerGraphQl/Model/Resolver/Customer/CustomerDataUpdater.php index 3fec957c163f8..0e472bcf3945a 100644 --- a/app/code/Magento/CustomerGraphQl/Model/Resolver/Customer/CustomerDataUpdater.php +++ b/app/code/Magento/CustomerGraphQl/Model/Resolver/Customer/CustomerDataUpdater.php @@ -42,8 +42,11 @@ class CustomerDataUpdater /** * CustomerDataUpdater constructor. + * * @param CustomerRepositoryInterface $customerRepository * @param StoreResolverInterface $storeResolver + * @param CustomerDataProvider $customerDataProvider + * @param SubscriberFactory $subscriberFactory */ public function __construct( CustomerRepositoryInterface $customerRepository, @@ -61,7 +64,7 @@ public function __construct( * Manage customer subscription. Subscribe OR unsubscribe if required. Return new subscription status * * @param int $customerId - * @param $newSubscriptionStatus + * @param bool $newSubscriptionStatus * @return bool */ public function manageSubscription(int $customerId, bool $newSubscriptionStatus): bool @@ -78,6 +81,8 @@ public function manageSubscription(int $customerId, bool $newSubscriptionStatus) } /** + * Update account information related to + * * @param int $customerId * @param array $customerData * @return CustomerInterface diff --git a/app/code/Magento/CustomerGraphQl/Model/Resolver/CustomerUpdate.php b/app/code/Magento/CustomerGraphQl/Model/Resolver/CustomerUpdate.php index 6c3112632dbe2..b570767acaef3 100644 --- a/app/code/Magento/CustomerGraphQl/Model/Resolver/CustomerUpdate.php +++ b/app/code/Magento/CustomerGraphQl/Model/Resolver/CustomerUpdate.php @@ -49,8 +49,12 @@ class CustomerUpdate implements ResolverInterface protected $customerRegistry; /** + * CustomerUpdate constructor. + * * @param CustomerDataProvider $customerResolver + * @param CustomerDataUpdater $customerUpdater * @param ValueFactory $valueFactory + * @param \Magento\Newsletter\Model\SubscriberFactory $subscriberFactory */ public function __construct( CustomerDataProvider $customerResolver, diff --git a/dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/CustomerAccountEditTest.php b/dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/CustomerAccountEditTest.php index 7bf46f08c853a..17899cc7a7ccd 100644 --- a/dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/CustomerAccountEditTest.php +++ b/dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/CustomerAccountEditTest.php @@ -5,6 +5,7 @@ */ declare(strict_types=1); namespace Magento\GraphQl\Customer; + use Magento\Customer\Api\AccountManagementInterface; use Magento\Integration\Api\CustomerTokenServiceInterface; use Magento\TestFramework\ObjectManager; @@ -88,7 +89,7 @@ public function testCustomerCheckSubscription() $query = $this->getSubscriptionQuery($isSubscribed); $headerMap = $this->getCustomerAuthHeaders($customerEmail, $customerPassword); - $response = $this->graphQlQuery($query, [], '', $headerMap); + $this->graphQlQuery($query, [], '', $headerMap); $subscriberModel = ObjectManager::getInstance()->get(Subscriber::class); $subscriber = $subscriberModel->loadByEmail($customerEmail); @@ -154,4 +155,4 @@ protected function setUp() \Magento\Framework\Api\FilterBuilder::class ); } -} \ No newline at end of file +}