Skip to content

Commit e4a5889

Browse files
committed
ITT: Tests added.
1 parent 48da6e1 commit e4a5889

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/Helpers/InteractsWithConsoleTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,12 @@ public function it_can_run_console_command_by_class_name_via_object_and_return_i
99
$this->assertInstanceOf(GenericCommand::class, $command);
1010
$this->assertEquals('Important!', $command->getSomethingImportant());
1111
}
12+
13+
/** @test */
14+
public function it_can_run_console_command_by_passed_object_and_return_it()
15+
{
16+
$command = $this->runConsoleCommand(new GenericCommand);
17+
$this->assertInstanceOf(GenericCommand::class, $command);
18+
$this->assertEquals('Important!', $command->getSomethingImportant());
19+
}
1220
}

0 commit comments

Comments
 (0)