We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48da6e1 commit e4a5889Copy full SHA for e4a5889
tests/Helpers/InteractsWithConsoleTest.php
@@ -9,4 +9,12 @@ public function it_can_run_console_command_by_class_name_via_object_and_return_i
9
$this->assertInstanceOf(GenericCommand::class, $command);
10
$this->assertEquals('Important!', $command->getSomethingImportant());
11
}
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
+ }
20
0 commit comments