Update to laravel 12, other changes.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Unit;
|
||||
|
||||
use Illuminate\Foundation\Testing\WithConsoleEvents;
|
||||
use Tests\TestCase;
|
||||
|
||||
class ConsoleEventTest extends TestCase
|
||||
{
|
||||
use WithConsoleEvents;
|
||||
/**
|
||||
* A basic unit test example.
|
||||
*/
|
||||
public function test_example(): void
|
||||
{
|
||||
$this->artisan('question')
|
||||
->expectsQuestion('What is your name?', 'Taylor Otwell')
|
||||
->expectsQuestion('Which language do you prefer?', 'PHP')
|
||||
->expectsOutput('Your name is Taylor Otwell and you prefer PHP.')
|
||||
->doesntExpectOutput('Your name is Taylor Otwell and you prefer Ruby.')
|
||||
->assertExitCode(0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user