You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to create some tests including passport-based auth functions.
I am using passport with uuids, I want to pre-run the passport-installation in my PHPUnit-test:
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
/**
* Set up the tests
*/
public function setUp(): void
{
parent::setUp();
Artisan::call('migrate', ['-vvv' => true]);
Artisan::call('passport:install', ['-vvv' => true, '--uuids' => true]);
$this->seed();
}
}
Unfortunately this returns:
Received Mockery_1_Illuminate_Console_OutputStyle::askQuestion(), but no expectations were specified
at vendor/symfony/console/Style/SymfonyStyle.php:293
289▕ * {@inheritdoc}
290▕ */
291▕ public function confirm(string $question, bool $default = true)
292▕ {
➜ 293▕ return $this->askQuestion(new ConfirmationQuestion($question, $default));
294▕ }
295▕
296▕ /**
297▕ * {@inheritdoc}
+18 vendor frames
19 tests/TestCase.php:25
If I extend this to --no-interaction I am getting the very same error.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everybody,
I'd like to create some tests including passport-based auth functions.
I am using passport with uuids, I want to pre-run the passport-installation in my PHPUnit-test:
Unfortunately this returns:
If I extend this to
--no-interaction
I am getting the very same error.Line 25 of
TestCase.php
containsBeta Was this translation helpful? Give feedback.
All reactions