Skip to content

Commit

Permalink
test(Generators): add string cmd test
Browse files Browse the repository at this point in the history
- Add a test that checks if the `processHelperRun` method successfully runs a string command.
- The test uses the `echo` command to output the string 'foo' and     expects the command to be successful.
- The test is grouped under the directory and file where it is located.
  • Loading branch information
[email protected] committed Oct 15, 2024
1 parent 3ecde9c commit 9aab1da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Unit/Generators/GeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
$this->generator = $generator;
});

it('can run string cmd', function (): void {
expect($this->generator->processHelperRun('echo foo'))->isSuccessful()->toBeTrue();
})->group(__DIR__, __FILE__);

it('can sanitize output to JSON', function (): void {
$output = <<<'OUTPUT'
{
Expand Down

0 comments on commit 9aab1da

Please sign in to comment.