From b38021eeae9704d8c110b57b280e7a80e2acffa6 Mon Sep 17 00:00:00 2001 From: Jasper Tey Date: Sun, 24 Mar 2024 15:26:52 -0400 Subject: [PATCH] Skip enum tests for < laravel 11 --- tests/Generator/ExtendedCommandsTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Generator/ExtendedCommandsTest.php b/tests/Generator/ExtendedCommandsTest.php index 06317ee..2678e2d 100644 --- a/tests/Generator/ExtendedCommandsTest.php +++ b/tests/Generator/ExtendedCommandsTest.php @@ -5,6 +5,10 @@ use Lunarstorm\LaravelDDD\Support\Domain; it('can generate extended objects', function ($type, $objectName, $domainPath, $domainRoot) { + if (in_array($type, ['enum'])) { + skipOnLaravelVersionsBelow('11'); + } + Config::set('ddd.domain_path', $domainPath); Config::set('ddd.domain_namespace', $domainRoot);