You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SQLite test database uses case-sensitive collation while production MySQL uses case-insensitive, causing test failures for case-insensitive string operations.
To Reproduce
Steps to reproduce the behavior:
Go to file tests/Feature/Api/V1/UserSummaryTest.php and add the following test case:
wescopeland
changed the title
fix(tests): Add case-insensitive collation settings to SQLite test database
Add case-insensitive collation settings to SQLite test database
Nov 24, 2024
Describe the bug
Originated during discussion of PR #2854
SQLite test database uses case-sensitive collation while production MySQL uses case-insensitive, causing test failures for case-insensitive string operations.
To Reproduce
Steps to reproduce the behavior:
tests/Feature/Api/V1/UserSummaryTest.php
and add the following test case:php artisan test tests/Feature/Api/V1/UserSummaryTest.php --filter testUsernameCaseConsistency
Expected behavior
Additional context
_ci
collation by defaultThe text was updated successfully, but these errors were encountered: