diff --git a/tests/Unit/Launcher/ProjectDetectorTest.php b/tests/Unit/Launcher/ProjectDetectorTest.php index 833a8f1e..11e28b25 100644 --- a/tests/Unit/Launcher/ProjectDetectorTest.php +++ b/tests/Unit/Launcher/ProjectDetectorTest.php @@ -47,18 +47,6 @@ expect((new ProjectDetector())->detect($path)->type)->toBe(ProjectType::Composer); }); -it('treats a require-dev only requirement as a composer project', function () { - $path = TemporaryProject::composer(manifest: '{"name": "acme/site", "require-dev": {"hyde/framework": "^2.0"}}'); - - expect((new ProjectDetector())->detect($path)->type)->toBe(ProjectType::Composer); -}); - -it('is case insensitive about package names', function () { - $path = TemporaryProject::composer(manifest: '{"name": "acme/site", "require": {"Hyde/Framework": "^2.0"}}'); - - expect((new ProjectDetector())->detect($path)->type)->toBe(ProjectType::Composer); -}); - it('refuses a composer project that does not declare Hyde', function () { $path = TemporaryProject::directory(); @@ -78,6 +66,18 @@ ); }); +it('treats a require-dev only requirement as a composer project', function () { + $path = TemporaryProject::composer(manifest: '{"name": "acme/site", "require-dev": {"hyde/framework": "^2.0"}}'); + + expect((new ProjectDetector())->detect($path)->type)->toBe(ProjectType::Composer); +}); + +it('is case insensitive about package names', function () { + $path = TemporaryProject::composer(manifest: '{"name": "acme/site", "require": {"Hyde/Framework": "^2.0"}}'); + + expect((new ProjectDetector())->detect($path)->type)->toBe(ProjectType::Composer); +}); + /* |-------------------------------------------------------------------------- | Manifests that mention Hyde without depending on it