Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
markhuot committed Oct 8, 2024
1 parent f385a10 commit a53889b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/ConsoleCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@

it('executes console commands')
->console(PestController::class, 'internal')
->assertSuccesful()
->assertSee('stdout')
->assertSee('stderr')
->assertDontSee('missing');

it('gets stdout and stderr', function () {
$response = $this->console(PestController::class, 'internal');

expect($response->exitCode)->toBe(0);
expect($response->stdout)->toContain('stdout');
expect($response->stderr)->toContain('stderr');
});

0 comments on commit a53889b

Please sign in to comment.