Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
paths: - "backend/tests/" - "backend/phpunit.xml" - "backend/database/factories/"
Backend test setup
- CI runs
--testsuite=Unitwith no database, so a Unit test that reaches a query passes locally and fails in CI. Account::factory()->create()does not create theaccount_usersrow; tests that insert events needUser::factory()->withAccount()->create().- Never hardcode a production algorithm's output (hashes, signatures, derived ids); compute the expected value through the same service.
- A pgsql volume older than
docker/development/pgsql-init/has nohievents_testdatabase; create it once:docker compose -f docker-compose.dev.yml exec pgsql psql -U username -d backend -c 'CREATE DATABASE hievents_test OWNER username;'