Geoff Taylor and GitHub
146a4430f9
fix: add authenticate flag to registerCustomer mutation ( #973 )
...
* fix: add authenticate flag to registerCustomer mutation
Adds an optional `authenticate` boolean input to the registerCustomer
mutation. When true, the mutation sets the current user and reinitializes
the session token for the newly registered customer. Defaults to false
to prevent nonce verification failures in contexts like GraphiQL that
send a nonce with the request.
Resolves #464
* test: add authenticate flag to existing register customer tests
The existing wpunit tests for registerCustomer rely on the user being
authenticated after registration to assert on customer.databaseId and
viewer.userId. Now that authenticate defaults to false, the tests must
explicitly pass authenticate: true.
* test: add authenticate flag to testCustomerMutationsWithMeta
* fix: use explicit billing emails in CustomerQueriesTest assertions
Use wildcard index matching with specific email values instead of
hardcoded node indices with NOT_NULL checks. This prevents failures
when other users in the DB shift the node positions.
2026-03-18 13:13:45 -04:00
Dovid Levine and GitHub
e96236696f
chore: bump deps to meet actual requirements and lint for WPCS 3.0 ( #816 )
...
* chore: bump min versions to actual and update deps
* chore: fix multiple empty lines at EOF
* chore: preincrement when standalone (phpcs)
* fix: use `printf` instead of `echo sprintf` [phpcs]
* chore: avoid lonely `if()` in `else{}` [phpcs]
* chore: avoid reserved keywords as param names [phpcs]
* chore: remove unused callback params [phpcs]
* chore: remove more unused callback params [phpcs]
* chore: apply lints to tests
* chore: update ruleset for PHPCS 3.0
* texts: restore $last_request_headers
2023-11-30 08:41:32 -05:00
Geoffrey K Taylor and GitHub
44c27174b6
fix: WP User core field support fixed in updateCustomer mutation ( #789 )
...
* devops: CustomerMutationsTest refactored heavily
* fix: `updateCustomer` mutation patched
2023-08-22 20:18:47 -04:00
Geoffrey K Taylor and GitHub
121918ffe2
devops: Test Scripts updated. ( #702 )
...
* devops: Test Scripts updated.
* chore: WPCS compliance met.
2023-02-01 14:57:46 -05:00
Geoffrey K Taylor and GitHub
9073793e86
chore: WPGraphQL v1.9.x connection resolver support added and autoloader removed. ( #647 )
...
* chore: WPGraphQL v1.9x + WP Bedrock support added.
* chore: lint compliance met.
* chore: composer/installers added back to allow-plugins
2022-08-26 14:53:36 -04:00
Geoffrey K Taylor and GitHub
6dbdcb5ae8
fix: Product Attribute naming conventions changed ( #603 )
...
* fix: Product Attribute naming conventions changed
* devops: dev dependencies updated
* devops: dev dependencies updated
* devops: dev dependencies updated
* devops: Dockerfile updated
* devops: dev dependencies updated
* devops: dev dependencies updated
* devops: dev dependencies updated
* devops: Dockerfile updated
* chore: Docker composer configurations updated
* chore: Coding standards met.
2022-02-04 15:00:44 -05:00
Geoff Taylor
ea4a4a539b
coding standards met.
2021-01-27 14:02:06 -05:00
Geoff Taylor
6adfc199f4
"testCustomerMutationsWithMeta()" added to "CustomerMutationsTest"
2021-01-27 13:33:46 -05:00
Geoff Taylor and Geoff Taylor
f47bee2b5f
Docker/Codeception configuration heavily refactored..
2021-01-22 11:34:09 -05:00
Geoff Taylor
4d24037d9c
"testRegisterMutationWithoutAnyInfo" test added to the "CustomerMutationsTest" test case.
2020-11-23 15:31:58 -05:00
Geoff Taylor
449d3b1674
"typeId" fields replaced by "databaseId".
2020-09-16 16:32:14 -04:00
Geoff Taylor
369fb7aa22
testing updated.
2019-11-13 18:53:31 -05:00
Geoff Taylor
b46327a404
jwt fields added to customer mutations tests.
2019-10-15 23:24:56 -04:00
Geoff Taylor
e1be5c2208
Remove viewer from updateCustomer output fields.
2019-05-10 21:08:01 -04:00
Geoff Taylor
3814049a9d
"updateCustomer" implemented and tested.
2019-05-10 20:56:13 -04:00
Geoff Taylor
a55f814c24
"registerCustomer" implemented and tested
2019-05-10 17:43:20 -04:00
Geoff Taylor
b91c9ae4c2
"customerRegister" mutation implemented, however bug found concerning customer billing and shipping info assignment.
2019-05-01 22:01:34 -04:00
Geoff Taylor
4e4654c540
CouponQueriesTest refactored. Unneeded tests removed.
2019-04-13 00:46:16 -04:00
Geoff Taylor
9949927b2b
clean-up started
2019-03-21 21:43:24 -04:00
Geoff Taylor
db6b666d9b
some test implementation started
2019-03-14 23:55:34 -04:00