Skip to content

Commit

Permalink
Remove Laravel 9 related shims.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspertey committed Mar 23, 2024
1 parent 4483b24 commit 905d2ee
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 17 deletions.
2 changes: 1 addition & 1 deletion tests/Generator/MakeActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/Generator/MakeBaseModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
$this->artisan('ddd:base-model')
->expectsQuestion('What is the domain?', 'Shared')
->assertExitCode(0);
})->ifSupportsPromptForMissingInput();
});
2 changes: 1 addition & 1 deletion tests/Generator/MakeBaseViewModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
$this->artisan('ddd:base-view-model')
->expectsQuestion('What is the domain?', 'Shared')
->assertExitCode(0);
})->ifSupportsPromptForMissingInput();
});
2 changes: 1 addition & 1 deletion tests/Generator/MakeDataTransferObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@
->expectsQuestion('What is the domain?', 'Utility')
->expectsQuestion('What should the data transfer object be named?', 'Belt')
->assertExitCode(0);
})->ifSupportsPromptForMissingInput();
});
2 changes: 1 addition & 1 deletion tests/Generator/MakeModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,4 @@
->expectsQuestion('What is the domain?', 'Utility')
->expectsQuestion('What should the model be named?', 'Belt')
->assertExitCode(0);
})->ifSupportsPromptForMissingInput();
});
2 changes: 1 addition & 1 deletion tests/Generator/MakeValueObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@
->expectsQuestion('What is the domain?', 'Utility')
->expectsQuestion('What should the value object be named?', 'Belt')
->assertExitCode(0);
})->ifSupportsPromptForMissingInput();
});
2 changes: 1 addition & 1 deletion tests/Generator/MakeViewModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@
->expectsQuestion('What is the domain?', 'Utility')
->expectsQuestion('What should the view model be named?', 'Belt')
->assertExitCode(0);
})->ifSupportsPromptForMissingInput();
});
10 changes: 0 additions & 10 deletions tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

0 comments on commit 905d2ee

Please sign in to comment.