Tags: TruckersMP/API-Client
Tags
Mock unit tests (#48) Major changes: * Mock API and model tests instead of sending API requests * Create a base class for entity models * Add types to model attributes (supporting PHP 7.4) Other minor changes which were done together with the above: * Move the HTTP client to the API client * Move the API configuration to the API client * Rename the Patreon get method in the Player model * Deprecate the company role get method in the Player model * Fix the start_at type in the Event model * Fix parameter types for the company key in requests * Fix the ProMods name in the Server model * Do not use confirmed and unsure counts in the EventAttendance model
Added new player methods (#20) * Improved the readability of test names * We can now check if a player is a staff member or an upper staff member * We can now get the users patreon information * Updated composer dependencies * Made the player patreon tests more future proof
PreviousNext