-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore/testing and ci config #42
Conversation
…upport fix: Support for WPGraphQL v1.8+ has been added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've pushed a change to the code that fixes the CI issue and moves it into a state where I get the same locally, is more help required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! I just have one suggested change that you can opt to do or ignore. 🕺
includes/class-ql-events.php
Outdated
require get_includes_directory() . 'types/interface/class-ticket-interface.php'; | ||
require get_includes_directory() . 'types/object/common/trait-attendee.php'; | ||
require get_includes_directory() . 'types/object/common/trait-order.php'; | ||
require get_includes_directory() . 'types/object/common/trait-ticket.php'; | ||
require get_includes_directory() . 'types/object/class-event-linked-data-type.php'; | ||
require get_includes_directory() . 'types/object/class-event-type.php'; | ||
require get_includes_directory() . 'types/object/class-organizer-linked-data-type.php'; | ||
require get_includes_directory() . 'types/object/class-organizer-type.php'; | ||
require get_includes_directory() . 'types/object/class-paypalattendee-type.php'; | ||
require get_includes_directory() . 'types/object/class-paypalorder-type.php'; | ||
require get_includes_directory() . 'types/object/class-paypalticket-type.php'; | ||
require get_includes_directory() . 'types/object/class-rsvpattendee-type.php'; | ||
require get_includes_directory() . 'types/object/class-rsvpticket-type.php'; | ||
require get_includes_directory() . 'types/object/class-ticket-linked-data-type.php'; | ||
require get_includes_directory() . 'types/object/class-venue-linked-data-type.php'; | ||
require get_includes_directory() . 'types/object/class-venue-type.php'; | ||
require get_includes_directory() . 'types/object/class-wooattendee-type.php'; | ||
|
||
require get_includes_directory() . 'data/connection/class-attendee-connection-resolver.php'; | ||
require get_includes_directory() . 'data/connection/class-event-connection-resolver.php'; | ||
require get_includes_directory() . 'data/connection/class-organizer-connection-resolver.php'; | ||
require get_includes_directory() . 'data/connection/class-ticket-connection-resolver.php'; | ||
require get_includes_directory() . 'data/class-factory.php'; | ||
|
||
require get_includes_directory() . 'connection/class-attendees.php'; | ||
require get_includes_directory() . 'connection/class-events.php'; | ||
require get_includes_directory() . 'connection/class-organizers.php'; | ||
require get_includes_directory() . 'connection/class-tickets.php'; | ||
|
||
require get_includes_directory() . 'class-core-schema-filters.php'; | ||
require get_includes_directory() . 'class-type-registry.php'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a necessary change, but a suggested one: Perhaps call get_includes_directory()
once and assign to a variable to avoid repeated calls?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 👍🏿
Summary
wp-graphql/wp-graphql-testcase
package added tocomposer.json
str_slug()
usage in factories replaced withslugify()
EventQueriesTest
,OrganizerQueriesTest
, andVenueQueriesTest
to extend the QLEventsTestCase and take advantage of the WPGraphQL Testcase assertions.TODO