17 lines
467 B
PHP
17 lines
467 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Blade;
|
|
|
|
it('compiles application and module blade templates', function (): void {
|
|
$views = array_merge(
|
|
glob(resource_path('views/**/*.blade.php')) ?: [],
|
|
glob(base_path('Modules/*/Resources/views/**/*.blade.php')) ?: [],
|
|
);
|
|
|
|
foreach ($views as $view) {
|
|
$compiled = Blade::compileString((string) file_get_contents($view));
|
|
|
|
expect($compiled)->toBeString()->not->toBeEmpty();
|
|
}
|
|
});
|