style updates

This commit is contained in:
Mark Gregory
2026-07-24 14:59:44 +01:00
parent 24ab771cd3
commit dd23205d0b
482 changed files with 7173 additions and 1435 deletions
@@ -1,18 +1,23 @@
<?php
namespace Modules\Marketplace\Tests\Feature;
use Modules\Marketplace\Services\CompatibilityChecker;
use Modules\Marketplace\Services\PackageManifest;
use Tests\TestCase;
final class MarketplaceModuleTest extends TestCase
{
public function test_manifest_parser_accepts_supported_package(): void
{
$manifest=app(PackageManifest::class)->parse(['name'=>'vendor/example','type'=>'module','version'=>'1.0.0']);
$this->assertSame('module',$manifest['type']); $this->assertSame([], $manifest['requires']);
$manifest = app(PackageManifest::class)->parse(['name' => 'vendor/example', 'type' => 'module', 'version' => '1.0.0']);
$this->assertSame('module', $manifest['type']);
$this->assertSame([], $manifest['requires']);
}
public function test_current_platform_is_compatible_with_wildcard_manifest(): void
{
$result=app(CompatibilityChecker::class)->check(['php'=>'*','laravel'=>'*','content_manager'=>'*']);
$result = app(CompatibilityChecker::class)->check(['php' => '*', 'laravel' => '*', 'content_manager' => '*']);
$this->assertTrue($result['compatible']);
}
}