You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pixelfed/tests/Feature
Your Name 88adf721c3 fix: use utf8mb4_unicode_520_ci for hashtags to fix BMP-outside collation (PR #6098)
MySQL/MariaDB's utf8mb4_unicode_ci collation treats all characters outside
the Basic Multilingual Plane as equal, conflating distinct same-length
hashtags (e.g. Shavian vs cuneiform) on the unique name/slug indexes.

Migrate the hashtags name/slug columns to utf8mb4_unicode_520_ci, which
differentiates supplementary-plane characters. Improvements over the
original PR:
- Use an explicit ALTER ... MODIFY, since Laravel's fluent ->change() emits
  no collation change on MySQL/MariaDB and silently no-ops.
- Match both 'mysql' and 'mariadb' drivers (Laravel 11+ reports MariaDB as a
  distinct driver, so a mysql-only check would skip the fix on MariaDB).
- Provide an accurate, reversible down() and preserve NOT NULL + unique keys.

Add feature tests covering the no-op path on non-MySQL drivers and, on
MySQL/MariaDB, that distinct BMP-outside hashtags coexist while same-slug
and case-insensitive dedup still work.
4 weeks ago
..
Account style: import DB facade in FixPostCounts test (pint) 4 weeks ago
Api refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
Auth refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
AuthScope refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
Compose refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
CriticalRoutes fix: stop caching raw Eloquent models to prevent incomplete-object 500s 4 weeks ago
Federation Fix duplicate-key violation when importing remote media attachments 4 weeks ago
Framework refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
Security refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
Settings refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
ActivityPubDeliveryServiceTest.php refactor: extract shared ActivityPub pool delivery into ActivityPubDeliveryService 4 weeks ago
AdminRemoveCwTest.php refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
CommentPrivatePostTest.php refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
DeleteWorkerAuthorizationTest.php refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
HashtagCollationTest.php fix: use utf8mb4_unicode_520_ci for hashtags to fix BMP-outside collation (PR #6098) 4 weeks ago
HttpClientMigrationTest.php fix: resolve larastan class.notFound errors 4 weeks ago
LoginTest.php API improvements + test fixes (#5925) 1 year ago
ModelNamespaceMigrationTest.php test: verify morph map resolves legacy model namespaces 4 weeks ago
NotificationServiceTest.php refactor: extract duplicate patterns into shared methods 4 weeks ago
RemoteOidcTest.php refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
ValidUsernameTest.php refactor: rename PixelfedUsername rule to ValidUsername 4 weeks ago