From 905d2ee8a3733e1f4cc9d5f143037d1fdf775d4c Mon Sep 17 00:00:00 2001 From: Jasper Tey Date: Sat, 23 Mar 2024 19:23:30 -0400 Subject: [PATCH] Remove Laravel 9 related shims. --- tests/Generator/MakeActionTest.php | 2 +- tests/Generator/MakeBaseModelTest.php | 2 +- tests/Generator/MakeBaseViewModelTest.php | 2 +- tests/Generator/MakeDataTransferObjectTest.php | 2 +- tests/Generator/MakeModelTest.php | 2 +- tests/Generator/MakeValueObjectTest.php | 2 +- tests/Generator/MakeViewModelTest.php | 2 +- tests/Pest.php | 10 ---------- 8 files changed, 7 insertions(+), 17 deletions(-) diff --git a/tests/Generator/MakeActionTest.php b/tests/Generator/MakeActionTest.php index d80cb6f..e101006 100644 --- a/tests/Generator/MakeActionTest.php +++ b/tests/Generator/MakeActionTest.php @@ -65,7 +65,7 @@ ->expectsQuestion('What is the domain?', 'Utility') ->expectsQuestion('What should the action be named?', 'DoThatThing') ->assertExitCode(0); -})->ifSupportsPromptForMissingInput(); +}); it('extends a base action if specified in config', function ($baseAction) { Config::set('ddd.base_action', $baseAction); diff --git a/tests/Generator/MakeBaseModelTest.php b/tests/Generator/MakeBaseModelTest.php index f7507e8..3a7fe08 100644 --- a/tests/Generator/MakeBaseModelTest.php +++ b/tests/Generator/MakeBaseModelTest.php @@ -48,4 +48,4 @@ $this->artisan('ddd:base-model') ->expectsQuestion('What is the domain?', 'Shared') ->assertExitCode(0); -})->ifSupportsPromptForMissingInput(); +}); diff --git a/tests/Generator/MakeBaseViewModelTest.php b/tests/Generator/MakeBaseViewModelTest.php index 9b85555..2e7f5a2 100644 --- a/tests/Generator/MakeBaseViewModelTest.php +++ b/tests/Generator/MakeBaseViewModelTest.php @@ -48,4 +48,4 @@ $this->artisan('ddd:base-view-model') ->expectsQuestion('What is the domain?', 'Shared') ->assertExitCode(0); -})->ifSupportsPromptForMissingInput(); +}); diff --git a/tests/Generator/MakeDataTransferObjectTest.php b/tests/Generator/MakeDataTransferObjectTest.php index 5cfd786..e4e9b4e 100644 --- a/tests/Generator/MakeDataTransferObjectTest.php +++ b/tests/Generator/MakeDataTransferObjectTest.php @@ -65,4 +65,4 @@ ->expectsQuestion('What is the domain?', 'Utility') ->expectsQuestion('What should the data transfer object be named?', 'Belt') ->assertExitCode(0); -})->ifSupportsPromptForMissingInput(); +}); diff --git a/tests/Generator/MakeModelTest.php b/tests/Generator/MakeModelTest.php index d4abde0..3c471ae 100644 --- a/tests/Generator/MakeModelTest.php +++ b/tests/Generator/MakeModelTest.php @@ -190,4 +190,4 @@ ->expectsQuestion('What is the domain?', 'Utility') ->expectsQuestion('What should the model be named?', 'Belt') ->assertExitCode(0); -})->ifSupportsPromptForMissingInput(); +}); diff --git a/tests/Generator/MakeValueObjectTest.php b/tests/Generator/MakeValueObjectTest.php index 92d8029..be16a54 100644 --- a/tests/Generator/MakeValueObjectTest.php +++ b/tests/Generator/MakeValueObjectTest.php @@ -71,4 +71,4 @@ ->expectsQuestion('What is the domain?', 'Utility') ->expectsQuestion('What should the value object be named?', 'Belt') ->assertExitCode(0); -})->ifSupportsPromptForMissingInput(); +}); diff --git a/tests/Generator/MakeViewModelTest.php b/tests/Generator/MakeViewModelTest.php index 2120023..9d2c3e9 100644 --- a/tests/Generator/MakeViewModelTest.php +++ b/tests/Generator/MakeViewModelTest.php @@ -96,4 +96,4 @@ ->expectsQuestion('What is the domain?', 'Utility') ->expectsQuestion('What should the view model be named?', 'Belt') ->assertExitCode(0); -})->ifSupportsPromptForMissingInput(); +}); diff --git a/tests/Pest.php b/tests/Pest.php index d9fde5f..1363be1 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -12,13 +12,3 @@ function skipOnLaravelVersionsBelow($minimumVersion) test()->markTestSkipped("Only relevant from Laravel {$minimumVersion} onwards (Current version: {$version})."); } } - -function ifSupportsPromptForMissingInput() -{ - return skipOnLaravelVersionsBelow('9.49.0'); -} - -function ifGeneratorCommandsOutputFilePath() -{ - return skipOnLaravelVersionsBelow('9.32.0'); -}