Skip to content

Commit c30e1eb

Browse files
committed
test(Feature): add test for outputting console
- Add test for outputting console in OutputTest.php - Use `artisan('outputs')` to run the command - Assert that the command exits with a success code - Expect the output to contain OutputManager class - Group the test with the test file location
1 parent f6f3b2a commit c30e1eb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/Feature/OutputTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,19 @@
2828
];
2929
});
3030

31+
it('can not output soar scores', function (): void {
32+
config()->set('soar.exclusions', ['outputs']);
33+
34+
$this->artisan('outputs')
35+
->assertExitCode(Command::SUCCESS)
36+
->expectsOutput(OutputManager::class);
37+
38+
// $this->get('outputs')
39+
// ->assertOk()
40+
// // ->assertSee($this->see)
41+
// ->assertSee(OutputManager::class);
42+
})->group(__DIR__, __FILE__);
43+
3144
it('can outputs console', function (): void {
3245
$this->artisan('outputs')
3346
->assertExitCode(Command::SUCCESS)

0 commit comments

Comments
 (0)