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
24 lines
773 B
PHP
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);
|
|
}
|
|
});
|