Skip to content

Commit d1111a1

Browse files
committed
fix: handle confirm prompt in make:model test for Laravel 12 compatibility
1 parent 7e08ecd commit d1111a1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/Commands/MakeModelCommandTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ protected function getPackageProviders($app)
1616
public function test_generates_remote_model()
1717
{
1818
$this->artisan('make:model', ['name' => 'RemoteUser', '--remote' => true])
19+
->expectsQuestion('Do you want to generate additional components for the model?', 'no')
1920
->assertExitCode(0);
2021

2122
$path = app_path('Models/RemoteUser.php');

0 commit comments

Comments
 (0)