Files
SealShare/tests/Feature/ProductionBootTest.php
Andreas Reinhold / reiniandClaude Opus 5 461bc23f0a
tests / ci (8.5) (push) Successful in 2m16s
linter / quality (push) Successful in 1m1s
docker / build-and-push (push) Successful in 7m5s
docker / test (8.5) (push) Successful in 2m16s
docker / release (push) Successful in 4s
Fix the Docker image not starting: update Livewire Material to 1.1.1
The entrypoint's php artisan view:cache failed on the package's showcase
views, whose components were only registered with the showcase enabled.
1.1.1 registers them always. ProductionBootTest caches every view with
the showcase off, as the entrypoint does.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V9NnLxnPp8vaaurb3Z1MFy
2026-09-13 17:59:34 +02:00

24 lines
773 B
PHP

<?php
use Illuminate\Support\Facades\File;
/*
* docker/entrypoint.sh caches the configuration, routes and views on every start, with the
* Livewire Material showcase off (it only runs locally). A view that does not compile there stops
* the container from booting, so the tests compile them as production does.
*/
test('every view compiles as the production entrypoint caches them', function () {
expect(config('livewire-material.showcase.enabled'))->toBeFalse();
$compiled = storage_path('framework/testing/view-cache-'.uniqid());
File::ensureDirectoryExists($compiled);
config(['view.compiled' => $compiled]);
try {
$this->artisan('view:cache')->assertSuccessful();
} finally {
File::deleteDirectory($compiled);
}
});