2bnb / 2bnb/website

Add API Tests for all Models / Tables

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
backend
Dominant language
PHP
Stars
2
Forks
2
PR merge metrics
No merged PRs in 30d

Description

- [ ] Resources
- [ ] Absences
- [ ] Ranks
- [ ] Rank Groups
- [ ] Awards
- [ ] Award Requirements
- [ ] User Awards
- [ ] Slots
- [ ] Slot Requirements
- [ ] Slot Groups
- [ ] Event Slot Groups
- [ ] Event Slots
- [ ] Events
- [ ] User Edit Event Permissions
- [ ] Misbehaviours
- [ ] Donations
- [ ] Posts
- [ ] User Edit Post Permissions
- [ ] Comments
- [ ] Users
- [ ] Roles
- [ ] Permissions
- [ ] Role Permissions
- [ ] Bots
- [ ] Bot Logs
- [ ] Qualifications
- [ ] Trainers
- [ ] Qualification Attendees
- [ ] Award Types
- [ ] User Roles

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue lists many models/tables needing API tests. First, examine the existing test structure in the repository to understand the testing framework (likely PHPUnit) and how API tests are organized. Look for a test directory, possibly `tests/`, and see if there are existing model or API test examples. Then, for each listed model (e.g., Resources, Absences), locate the corresponding model file and its API endpoints. Write tests that cover basic CRUD operations for each, ensuring they run successfully. 'Done' means all checkboxes have passing tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.