Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Received Mockery_2_Illuminate_Console_OutputStyle::askQuestion(), but no expectations were specified #488

Open
tiagof opened this issue Jan 19, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@tiagof
Copy link

tiagof commented Jan 19, 2025

Describe the bug
Exception is thrown when running
php artisan shield:generate --all inside a testcase.

To Reproduce
Steps to reproduce the behavior:

  1. Create a testcase
  2. Call $this->artisan('shield:generate --all');inside the setUp() method

Example:

class TestCase extends \Tests\TestCase
{
    protected function setUp(): void
    {
        $this->artisan('shield:generate --all');
    }
}

The goal is to generate all necessary permissions before running any tests.

Expected behavior
No exception thrown and generation is exectued

Screenshots
If applicable, add screenshots to help explain your problem.

please complete the following information:

  • OS: MacOS
  • Filament 3.2
  • Version 3.3.4
@tiagof tiagof added the bug Something isn't working label Jan 19, 2025
@tiagof
Copy link
Author

tiagof commented Jan 19, 2025

The obvious workaround is to loop through the panels and call the command with --panel=$idfor each panel, but ideally it should be possible to run for all panels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants