trypost/tests
Paulo Castellano 097f30c765
Fix 500 on the MCP settings page when a client has never been used (#297)
* Fix 500 on the MCP settings page when a client has never been used

Sorting the connected clients used the raw last_used_at value with an
int fallback, so a workspace holding both a used client (CarbonImmutable)
and a freshly connected one (null, falling back to 0) handed arsort() a
mix of object and int. PHP cannot compare the two and raises
"Object of class Carbon\CarbonImmutable could not be converted to int",
which Laravel's error handler turns into a 500.

Sorting on the timestamp keeps the key a single type; never-used clients
get 0 and land at the bottom, which is the intended order.

The existing ordering test only covered clients that had all been used,
which is why this shipped. The new test covers the mixed case.

* Cover the all-never-used case on the MCP clients list
2026-08-19 09:52:54 -03:00
..
Browser Add social connect step to welcome before Stripe (#293) 2026-08-17 19:37:43 -03:00
Feature Fix 500 on the MCP settings page when a client has never been used (#297) 2026-08-19 09:52:54 -03:00
fixtures Add frontend unit tests and harden the cropper's test coverage 2026-07-04 09:56:38 -03:00
Unit Remove the post-templates feature (#296) 2026-08-19 09:34:26 -03:00
BrowserTestCase.php Address review: cropper mime/zoom/error fixes, harden browser test 2026-07-03 22:07:23 -03:00
CreatesApplication.php feat: Establish a dedicated testing environment with .env.testing, CreatesApplication trait, and Language model factory, integrating language selection into user profile tests and adjusting the languages table migration. 2026-01-18 19:56:04 -03:00
Pest.php ci: local TIA test runs; simplify e2e (drop sharding + e2e-gate) (#262) 2026-08-09 12:24:10 -03:00
TestCase.php Address review: cropper mime/zoom/error fixes, harden browser test 2026-07-03 22:07:23 -03:00