release aufiting

This commit is contained in:
Mark Gregory
2026-07-24 14:04:37 +01:00
parent bc9427ac33
commit c91ac80ab6
7 changed files with 328 additions and 0 deletions
@@ -0,0 +1,26 @@
<?php
use Illuminate\Support\Str;
it('has valid module manifests', function (): void {
$manifests = glob(base_path('Modules/*/module.json')) ?: [];
expect($manifests)->not->toBeEmpty();
foreach ($manifests as $manifest) {
$decoded = json_decode((string) file_get_contents($manifest), true, 512, JSON_THROW_ON_ERROR);
expect($decoded)
->toBeArray()
->toHaveKey('name')
->toHaveKey('providers');
expect($decoded['name'])->toBeString()->not->toBeEmpty();
expect($decoded['providers'])->toBeArray();
foreach ($decoded['providers'] as $provider) {
expect($provider)->toBeString();
expect(Str::contains($provider, '\\'))->toBeTrue();
}
}
});