Skip to content
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

Merged
merged 30 commits into from
Aug 12, 2022
Merged

Chore/testing and ci config #42

merged 30 commits into from
Aug 12, 2022

Conversation

kidunot89
Copy link
Collaborator

@kidunot89 kidunot89 commented Mar 9, 2022

Summary

  • wp-graphql/wp-graphql-testcase package added to composer.json
  • QLEventsTestCase implemented.
  • str_slug() usage in factories replaced with slugify()
  • Refactors the EventQueriesTest, OrganizerQueriesTest, and VenueQueriesTest to extend the QLEventsTestCase and take advantage of the WPGraphQL Testcase assertions.

TODO

  • Add Github Actions workflow for CI utilizing Tric. Thanks @borkweb

@kidunot89 kidunot89 requested a review from borkweb March 9, 2022 23:54
@kidunot89 kidunot89 requested a review from lucatume April 28, 2022 14:05
Copy link
Contributor

@lucatume lucatume left a 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?

Copy link
Member

@borkweb borkweb left a 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. 🕺

Comment on lines 165 to 195
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';
Copy link
Member

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?

Copy link
Collaborator Author

@kidunot89 kidunot89 Aug 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 👍🏿

@borkweb borkweb merged commit 254590f into master Aug 12, 2022
@borkweb borkweb deleted the chore/testing-and-ci-config branch August 12, 2022 13:00
@kidunot89 kidunot89 added bug Something isn't working breaking change enhancement New feature or request bugfix PR fixes bug(s) and removed bug Something isn't working labels Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change bugfix PR fixes bug(s) enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants